C
coffeeffee
Unregistered / Unconfirmed
GUEST, unregistred user!
下面一段程序,运行时提示query中的参数类型未知,请问如何解决????
with Query1 do
begin
Close;
Sql.Clear;
Sql.Add('Select Max(Sc_date),Min(Sc_date) into :Max_date,:Min_date from qf');
ExecSql;
MaxDate:=ParamByName('Max_date').AsDate;
MinDate:=ParamByName('Min_date').AsDate;
showmessage(DateToStr(MaxDate));
end;
with Query1 do
begin
Close;
Sql.Clear;
Sql.Add('Select Max(Sc_date),Min(Sc_date) into :Max_date,:Min_date from qf');
ExecSql;
MaxDate:=ParamByName('Max_date').AsDate;
MinDate:=ParamByName('Min_date').AsDate;
showmessage(DateToStr(MaxDate));
end;