select * from db where 日期>'01/01/01'

解决方案 »

  1.   

    select * from db where 日期>StrToDate('2001/01/01');
      

  2.   

    我要写成这样的格式怎办,即日期形式是2001/01/01
    select * from db where 日期>'2001/01/01'(这样会出错)
      

  3.   

    为什么一定要写成select * from db where 日期>'2001/01/01'格式.
      

  4.   

    数据库若是Access,可以试试
    select * from db where 日期>2001-01-01
      

  5.   

    因为这种符合习惯
    select * from db where 日期>StrToDate('2001/01/01'); 这种会出错
      

  6.   

    试试select * from db where 日期>StrToDate('2001-12-30');
      

  7.   

    SQL SERVER:select * from db where 日期>'01/01/01' 
    ACCESS:select * from db where 日期>datavalue("01/01/01") 
      

  8.   

    Access:Select * From DB Where 日期>#2001-01-01#
      

  9.   

    Select * From DB Where 日期>:mydate再Query1.ParambyName('mydate').asDate:=StrToDate('2001-01-01');
      

  10.   

    在SQL Server 中要看其系统的日期型是怎么设置的如:'年-月-日',那么就象gzmhero(hihihi)所写的试试看!