我写了一些返回语法错误的简单更新/插入语句,我错过了什么?表名是注释,字段注释是类型备注,acaps是双。
update notes set note='why is there a syntax error' where acaps=12345
我的insert语句中的语法错误:
insert into notes (acaps,note,updated,userId) values (12345,'Why is there a syntax error',#6/13/2011 5:07:35 PM#,'BRSANDE')
答案 0 :(得分:2)
您正在尝试使用保留字:List of reserved words in Access 2002 and in later versions of 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')