update jyjl set rq = ' 03-1-20 ' where jh='03' 这句是对的,但我想把日期为 03-1-17 的限定条件加上去,才会报错。
知道了 update jyjl set rq = #03-1-20# where jh='03' and rq = #03-1-17#;
如果数据库为access: update jyjl set rq = #03-1-20# where jh='03' and rq = # 03-1-17 # 如果数据库为sql: update jyjl set rq = '03-1-20' where jh='03' and rq = '03-1-17'
access数据库? update jyjl set rq = #03-1-20# where jh='03' and rq = #03-1-17# 这样就可以了吧。 sqlServer的话: update jyjl set rq = '03-1-20' where jh='03' and rq = '03-1-17'
若为update jyjl set rq = #03-1-20# where jh='03' and rq = #03-1-17# 则提示:正准备删除0条记录 若为update jyjl set rq = '03-1-20' where jh='03' and rq = '03-1-17' 则提示:标准表达式中类型不匹配
是ACCESS表 我是想把JYJL表中日期为03-1-17 AND JH="03"(限定条件)该为03-1-20 共有6000多条记录
UPDATE jyjl SET rq = #1/20/03# WHERE rq=#1/17/03#; 这样就行了。 年份写两位时,日期按月-日-年的顺序来写。 或者写成#2003-1-17#应该也行
这句是对的,但我想把日期为 03-1-17 的限定条件加上去,才会报错。
update jyjl set rq = #03-1-20# where jh='03' and rq = #03-1-17#;
update jyjl set rq = #03-1-20# where jh='03' and rq = # 03-1-17 #
如果数据库为sql:
update jyjl set rq = '03-1-20' where jh='03' and rq = '03-1-17'
update jyjl set rq = #03-1-20# where jh='03' and rq = #03-1-17#
这样就可以了吧。
sqlServer的话:
update jyjl set rq = '03-1-20' where jh='03' and rq = '03-1-17'
则提示:正准备删除0条记录
若为update jyjl set rq = '03-1-20' where jh='03' and rq = '03-1-17'
则提示:标准表达式中类型不匹配
我是想把JYJL表中日期为03-1-17 AND JH="03"(限定条件)该为03-1-20
共有6000多条记录
这样就行了。
年份写两位时,日期按月-日-年的顺序来写。
或者写成#2003-1-17#应该也行