记录类型为Date.记录为02-11-18,但执行 ' select * from custom where
date = 02-11-18 '却查询不出结果,这是为什么?

解决方案 »

  1.   

    ' select * from custom where date = #02-11-18# '
      

  2.   

    'select * from custom where date = #442002-11-18#44'
      

  3.   

    'select * from custom where date ='+ #39+'2002-11-18'+#39'
      

  4.   

    你的字短命用的是什么?如果是date改一个试一下
      

  5.   

    你的字段名是什么?如果是date改一个试一试
      

  6.   

    我的字段名为gmrq,有谁试过,拜托告之。
      

  7.   

    'select * from custom where gmrq ='+ #39+'2002-11-18'+#39'
    这种写法我在SQL Server中用了很多次了
      

  8.   

    ' select * from custom where date = #01-02-03# '先用这个查一下日期格式是什么?然后再做
      

  9.   

    oracle中为
      select * from custom where to_char(date,'yyyy-mm-dd')='2002-11-18'
      

  10.   

    正确的是:select * from custom where date = #2002-11-19# 即可查出