主要是日期字段没对应好
ACCESS用#
SQL SERVER 不用

解决方案 »

  1.   

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

  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 server:
    update jyjl set rq = '03-1-20 ' where jh='03' and rq = '03-1-17';
      

  4.   

    若为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 库中的查询对象中进行操作
      

  5.   

    先用以下语句查一下,看有几条记录,说不定是条件有问题
    select * from jyjl  where jh='03' and rq = #03-1-17#
      

  6.   

    rq 这个字段是不是还有时间
    即rq 这个字段是“yy-mm-dd hh:mm:ss”的格式
      

  7.   

    谢谢大家,是日期格式不对,实际是入库为格式YYYY/MM/DD,但写进表里时YYYY只取了后两位即:YY/MM/DD。谢谢大家。
    结贴。