注册 登录
编程论坛 Delphi论坛

delphi与数据库

zoujunwu 发布于 2007-04-21 14:53, 597 次点击
var
a:tdatetime;
begin
a:=2004-09.21;
ADOTable1.close;
ADOTable1.sql.text:='select *from aaa where hire_date>'''+a+'''';
ADOTable1.open;
end;
怎么老是错弄?各位老大在这如何用那一个时间变量。帮帮我吧?
2 回复
#2
anthony6342007-04-21 16:28
ADOTable1.sql.text:='select *from aaa where hire_date>''+a+''';
#3
phonbob2007-04-21 17:34
我怎么看不到东西?
1