S
SolidSnake
Unregistered / Unconfirmed
GUEST, unregistred user!
若想使用SQL命令,筛选出位于一定时间段内的Record,为何如下命令不行,
--------------------------------------------------------------------------------
dstart:=strtodate(combobox1.text+'-'+combobox2.text+'-'+edit2.text);
dend:=strtodate(combobox3.text+'-'+combobox4.text+'-'+edit3.text);
with query1 do
begin
close;
sql.clear;
sql.add('select * from "jinhuo.db" where Date between :dates and :datee');
parambyname('dates').Value:=dstart;
parambyname('datee').Value:=dend;
open;
end;
--------------------------------------------------------------------------------
哪里有错误?应如何修改?十万火急!!!急盼您的回答!!!
--------------------------------------------------------------------------------
dstart:=strtodate(combobox1.text+'-'+combobox2.text+'-'+edit2.text);
dend:=strtodate(combobox3.text+'-'+combobox4.text+'-'+edit3.text);
with query1 do
begin
close;
sql.clear;
sql.add('select * from "jinhuo.db" where Date between :dates and :datee');
parambyname('dates').Value:=dstart;
parambyname('datee').Value:=dend;
open;
end;
--------------------------------------------------------------------------------
哪里有错误?应如何修改?十万火急!!!急盼您的回答!!!