沈
沈浪
Unregistered / Unconfirmed
GUEST, unregistred user!
我这样写,错在那里。为什么能够执行,确没有结果出来!query1与Dbgrid1关联
var
sqlstr,s2:string;
begin
s2:=trim(chatxt.Text);
sqlstr:='select * from guanli.khxx where 联系人=2';
with query1 do
begin
close;
sql.Clear;
SQL.Add(sqlstr);Parambyname('p2').AsString:=s2;
prepare;
ExecSQL;
end;
end;
var
sqlstr,s2:string;
begin
s2:=trim(chatxt.Text);
sqlstr:='select * from guanli.khxx where 联系人=2';
with query1 do
begin
close;
sql.Clear;
SQL.Add(sqlstr);Parambyname('p2').AsString:=s2;
prepare;
ExecSQL;
end;
end;