SELECT * FROM tab_data_SendRecode where (strftime ('%Y-%m-%d',SendDateTime) >= '2011-03-07');提示is not a valit Date 这个问题怎么解决呢?

解决方案 »

  1.   

    strftime是函数吧,怎么能直接用的sql中呢,你只能把他的结果拼接到sql中
      

  2.   

    是sql中用的函数,如果在sqlite3管理器中直接执行是好用的,但是在Delphi中就提示is not a valite Date这个错误
      

  3.   

    'SELECT * FROM tab_data_SendRecode where (strftime ('+QuotedStr('%Y-%m-%d')+',SendDateTime) >= '+QuotedStr('2011-03-07')+')';