禅
禅
Unregistered / Unconfirmed
GUEST, unregistred user!
with ADOQuery1 DO
begin
Close;
SQL.Clear;
SQL.Add('select * ');
SQL.Add('from post.DMK ');
SQL.Add('WHERE YM=:name');
ParamByName('name').AsString:=Edit1.Text; //这一句不行,为什么?怎么改?
Prepare;
try
Open;
Except
ExecSQL;
end;
begin
Close;
SQL.Clear;
SQL.Add('select * ');
SQL.Add('from post.DMK ');
SQL.Add('WHERE YM=:name');
ParamByName('name').AsString:=Edit1.Text; //这一句不行,为什么?怎么改?
Prepare;
try
Open;
Except
ExecSQL;
end;