时间查询的 sql ...100分 select sysdate from dual 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 能否说清楚点?下面的是否合用?select * from table1 where fdate=to_date('2002-5-24 12:21:21','yyyy-mm-dd hh24:mi:ss') steel1991(随想曲) 谢谢你,你能说的具体一点吗? 我查 to_date 没有这个函数 to_date是ORACLE的函数Delphi的函数是DatetimeToStr var sql:string;begin sql:='select * from table1 where fdate=to_date(''+ DateTimeToStr(now)+',''yyyy-mm-dd hh24:mi:ss'')'; end; newwen(玩一会儿) 兄弟说了 var sql:string;begin sql:='select * from table1 where fdate=to_date(''+ DateTimeToStr(now)+',''yyyy-mm-dd hh24:mi:ss'')'; end;适用于oracle 须注意引号。下面应没问题:var sql:string;begin sql:='select * from table1 where fdate=to_date(''2002-5-5 16:13:20'',''yyyy-mm-dd hh24:mi:ss'') '; stringgrid 控件 rowcount 的问题! ADO关于主从表删除的问题,特奇怪 dll有没有办法转换成ocx 如果在一个已有结点上添加一个Xml文件的所有结点 有点寂寞无聊,尝试放点分测试人气 有谁知道adotable的cursorlocation是干什么的 我要補課了! 如何用delphi调用飞信WebService接口实现短信发送 最新整理的300多个编程设计网站,论坛,有兴趣的朋友可以看看。 各位,修改表中某一字段名称的SQL语句怎么写啊 知道其另一程序的窗口句柄,怎样发消息关闭窗口??? 哪位系统高手救救我!!!50大洋!!!!
select * from table1 where fdate=to_date('2002-5-24 12:21:21','yyyy-mm-dd hh24:mi:ss')
Delphi的函数是DatetimeToStr
sql:string;
begin
sql:='select * from table1 where fdate=to_date(''+ DateTimeToStr(now)+',''yyyy-mm-dd hh24:mi:ss'')';
end;
sql:string;
begin
sql:='select * from table1 where fdate=to_date(''+ DateTimeToStr(now)+',''yyyy-mm-dd hh24:mi:ss'')';
end;适用于oracle
var
sql:string;
begin
sql:='select * from table1 where fdate=to_date(''2002-5-5 16:13:20'',''yyyy-mm-dd hh24:mi:ss'') ';