(急)dephi中的嵌套子查询问题
我用的是tquery组件,语句如下:
select nam,fes from dy
where num not in(select num from sg where dat=date() )
可是系统不给执行,系统提示的是DATE()函数有错误。
请各位大侠指点一下!
我用的是tquery组件,语句如下:
select nam,fes from dy
where num not in(select num from sg where dat=date() )
可是系统不给执行,系统提示的是DATE()函数有错误。
请各位大侠指点一下!
你还是用数据库中取得当前日期的函数吧.
PARADOX7中不知道,sqk sever中是getdate()
在PARADOX7帮助中找下不是很难的
begin
close;
sql.clear;
sql.add('select nam,fes from dy where num not in(select num from sg where dat=:pdate' );
parameters.parambyname('Pdate'):=date();
open;
end;
where num not in(select num from sg where dat=SysDate