N
niceboy911
Unregistered / Unconfirmed
GUEST, unregistred user!
代码:
procedure TForm7.BitBtn1Click(Sender: TObject);
begin
if form1.DAOQuery1.Active
then form1.DAOQuery1.Active:=False;
form1.DAOQuery1.SQL.Clear;
form1.DAOQuery1.SQL.Add('select * from gtda where 字号名称 like:zihao');
form1.DAOQuery1.ParamByName ('zihao').AsString:=edit1.text;
form1.DAOQuery1.Open;
end;
代码:
procedure TForm7.BitBtn1Click(Sender: TObject);
begin
if form1.DAOQuery1.Active
then form1.DAOQuery1.Active:=False;
form1.DAOQuery1.SQL.Clear;
form1.DAOQuery1.SQL.Add('select * from gtda where 字号名称 like:zihao');
form1.DAOQuery1.ParamByName ('zihao').AsString:='%'+edit1.text+'%';
form1.DAOQuery1.Open;
end;
补充一下是access的数据库