狼
狼牙
Unregistered / Unconfirmed
GUEST, unregistred user!
select * insert into :tmp后,tmp里面的值如何取出来?放到edit里面去?
procedure TForm1.Button1Click(Sender: TObject);
var
s:string;
begin
s:='';
s:='select city insert into :tmp from message where id=10';
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Add(s);
ADOQuery1.ExecSQL;
//ADOQuery1.Open;
edit1.Text:=ADOQuery1.Parameters.ParamByName('tmp').Value;
end;
procedure TForm1.Button1Click(Sender: TObject);
var
s:string;
begin
s:='';
s:='select city insert into :tmp from message where id=10';
ADOQuery1.SQL.Clear;
ADOQuery1.SQL.Add(s);
ADOQuery1.ExecSQL;
//ADOQuery1.Open;
edit1.Text:=ADOQuery1.Parameters.ParamByName('tmp').Value;
end;