带参查询

来源:互联网 发布:mac excel自动调节列宽 编辑:程序博客网 时间:2024/04/29 00:29
begin
       Query1.SQL.Clear;
       Query1.SQL.Add('select CustNO, Company, City, State from customer.db');
       Query1.SQL.Add('where country =(:countryName)');
       Query1.Params[0].AsString:=Edit1.Text;
       Query1.ExecSQL;
       Query1.Active:=True;
       Edit1.Text:='';
    end;
原创粉丝点击