错误:语法错误ini UPDATE语句.... [英] Error :Syntax error ini UPDATE statement....
本文介绍了错误:语法错误ini UPDATE语句....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
插入此数据字段时会发生但是当我尝试使用以下查询更新时更新
更新语法中为什么会发生这种情况????
update tbl_assigntask set时间= '12:00:00''其中id = 38
insert with this data field is happen but when i m tried update with this following query error
in update syntax why this is happend????
update tbl_assigntask set time='12:00:00 PM' where id=38
推荐答案
将时间段添加到时间,即
add brakets to time, i.e.
[time]
原因:时间是Access中的保留字,因此应避免将其用作字段名称,请参阅access-help-reserved-words [ ^ ]
As日期,时间,用户等
是系统的保留字。你不能马上使用它们。因此,您可以使用 [...] 来使用它们。
因此,您的查询应该看起来像,
AsDate, Time, User etc
are the reserved words of your system. You can't straight away use them. So you can use them using [...].
Therefore, your query should be looked like,
update tbl_assigntask set [time]='12:00:00 PM' where id=38
-KR
-KR
这篇关于错误:语法错误ini UPDATE语句....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文