K
kisse
Unregistered / Unconfirmed
GUEST, unregistred user!
ado 已经配置正确
procedure TForm1.Button1Click(Sender: TObject);
var time1,time2 : string;
begin
time1 := '2001-12-01';
time2 := '2001-12-30';
ADOQuery1.Close;
ADOQuery1.sql.clear;
ADOQuery1.sql.add('select * from 工资管理 where 发款日期 between');
ADOQuery1.sql.add('"' + time1 + '"' + 'and' + '"' + time2 +'"');
ADoquery1.Open;
end;
procedure TForm1.Button1Click(Sender: TObject);
var time1,time2 : string;
begin
time1 := '2001-12-01';
time2 := '2001-12-30';
ADOQuery1.Close;
ADOQuery1.sql.clear;
ADOQuery1.sql.add('select * from 工资管理 where 发款日期 between');
ADOQuery1.sql.add('"' + time1 + '"' + 'and' + '"' + time2 +'"');
ADoquery1.Open;
end;