问题描述
|
我写了简单的更新/插入语句,这些语句返回语法错误,我缺少什么?表名称是注释,字段注释是备忘录类型,大写字母是双精度型。
update notes set note=\'why is there a syntax error\' where acaps=12345
我的插入语句上的语法错误也是如此:
insert into notes (acaps,note,updated,userId) values (12345,\'Why is there a syntax error\',#6/13/2011 5:07:35 PM#,\'BRSANDE\')
解决方法
您正在尝试使用保留字:Access 2002和更高版本的Access中的保留字列表
update [notes]
set [note] = \'why is there a syntax error\'
where [acaps] = 12345
insert into [notes] ([acaps],[note],[updated],[userId])
values (12345,\'Why is there a syntax error\',#6/13/2011 5:07:35 PM#,\'BRSANDE\')