请问如何在Query中用SQL语句的到当前时间?谢谢指教

解决方案 »

  1.   

    我用了getdate(),但是运行时出现以下错误:
    EDBEngineError with message 'Capability not supported',这是怎么回事啊?
      

  2.   

    select current_time

    select now()
      

  3.   

    还是
    EDBEngineError with message 'Capability not supported',这是怎么回事啊?
      

  4.   

    那可能就是你的后台数据库不支持这个函数,没法,只有这样:
    Query1.Close;
    Query1.SQL.Text:='select NowTime='''+TimeToStr(Time)+'''';
    Query1.Open;