首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Access >

关于更新日期,该如何解决

2012-02-15 
关于更新日期初学access,下面的语句为什么有语法错误呢?update ip_table set IP127.0.0.1,date#2010-1

关于更新日期
初学access,下面的语句为什么有语法错误呢?
update ip_table set IP='127.0.0.1',date=#2010-1-1 20:1:1# where ID=1

[解决办法]

SQL code
update ip_table set IP='127.0.0.1',[date]=#2010-1-1 20:1:1# where ID=1
[解决办法]
楼上下解。 date 是关键字,加上 []

update ip_table set IP='127.0.0.1',[date]=#2010-1-1 20:1:1# where ID=1

热点排行