select * from table
where date between begdate and enddate

解决方案 »

  1.   

    SQL->Add("select * from abc"");
    SQL->Add("Where 操作日期=:mSysTimeToday");
    QuerySysLog->ParamByName("mSysTimeToday")->AsDate=Date();如果是时间段,用"where 操作日期 Between :mSysBegin and :mSysEnd"
      

  2.   

    1999-12-31你尽量不要直接这样写,传递到变量中,如果需用户选择,可用
    TDateTimePicker控件,从它的date属性得到
      

  3.   

    是不是只能用参数化查询方式呢??
    可不可以直接在query的sql builder里填写日期??怎么做??
    老是出现date type mismatch错误