老大,检查下你写的语句,是不是哪里写错了
这样应该可以的

解决方案 »

  1.   

    不可能呀!检查可以通过!但是查询却没结果
      

  2.   

    我是这么写的 SELECT *
    FROM tbContent
    WHERE (AddDttm > '2005-5-20') AND (AddDttm < '2005 - 5 - 23 ') 查询出来的空的!
    日期中间不能有空格的SELECT *
    FROM tbContent
    WHERE (AddDttm > '2005-5-20') AND (AddDttm < '2005-5-23 ')
    你可以用between and SELECT *
    FROM tbContent
    WHERE AddDttm between '2005-5-20' AND  '2005-5-23 '
      

  3.   

    我晕倒,你是把后面的'-'写成全角的'-'了吧!