update jyjl set rq = '#03-1-20#' where jh='03' and rq = '# 03-1-17 # ';

解决方案 »

  1.   

    update jyjl set rq = ' 03-1-20 ' where jh='03' 
    这句是对的,但我想把日期为 03-1-17 的限定条件加上去,才会报错。
      

  2.   

    知道了
    update jyjl set rq = #03-1-20# where jh='03' and rq = #03-1-17#;
      

  3.   

    如果数据库为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'
      

  4.   

    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'
      

  5.   

    若为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'
    则提示:标准表达式中类型不匹配
      

  6.   

    是ACCESS表
    我是想把JYJL表中日期为03-1-17 AND JH="03"(限定条件)该为03-1-20
    共有6000多条记录
      

  7.   

    UPDATE jyjl SET rq = #1/20/03# WHERE rq=#1/17/03#;
    这样就行了。
    年份写两位时,日期按月-日-年的顺序来写。
    或者写成#2003-1-17#应该也行