gpt4 book ai didi

我的更新和插入语句中的 SQL 语法错误

转载 作者:搜寻专家 更新时间:2023-10-30 23:21:14 25 4
gpt4 key购买 nike

我编写了返回语法错误的简单更新/插入语句,我错过了什么?表名是notes,字段note是type memo,acaps是double。

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')

最佳答案

您正在尝试使用保留字: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')

关于我的更新和插入语句中的 SQL 语法错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6337785/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com