J
jjy_888
Unregistered / Unconfirmed
GUEST, unregistred user!
请看一段代码,哪里出问题了?
procedure TForm1.ButtonSendClick(Sender: TObject);
var
s:string;
begin
if editpm.Text<>'' then
With ADOQuery1 do
begin
Active:=true;
close;
sql.clear;
sql.Add('select * from patient');
sql.Add('insert into patient(patient_name)');
sql.Add('valuess)');
Parameters.ParamByName('s').value:=EditPM.text;
ExecSQL;
end;
end;
procedure TForm1.ButtonSendClick(Sender: TObject);
var
s:string;
begin
if editpm.Text<>'' then
With ADOQuery1 do
begin
Active:=true;
close;
sql.clear;
sql.Add('select * from patient');
sql.Add('insert into patient(patient_name)');
sql.Add('valuess)');
Parameters.ParamByName('s').value:=EditPM.text;
ExecSQL;
end;
end;