编程语言

img liumeiti

带参查询

发表于2004/10/18 15:20:00  853人阅读

分类: Delphi

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;
阅读全文
0 0

相关文章推荐

img
取 消
img