delphi 模糊查询
procedureTForm5.Button1Click(Sender:TObject);varedit,idx:string;beginidx:=combobox2.I...
procedure TForm5.Button1Click(Sender: TObject);
var
edit,idx:string;
begin
idx:=combobox2.Items[combobox1.ItemIndex];
edit:=Trim(Edit1.Text);
default.Form1.ADOQuery3.SQL.Clear;
showMessage(default.Form1.ADOQuery3.SQL.Text);
showMessage(edit);
showMessage(idx);
default.Form1.ADOQuery3.SQL.Text:='select * from addr_d where '+idx+' like ''%'+edit+'% ''';
showMessage(default.Form1.ADOQuery3.SQL.Text);
default.Form1.ADOQuery3.Open;
end;
没有显示认识信息 展开
var
edit,idx:string;
begin
idx:=combobox2.Items[combobox1.ItemIndex];
edit:=Trim(Edit1.Text);
default.Form1.ADOQuery3.SQL.Clear;
showMessage(default.Form1.ADOQuery3.SQL.Text);
showMessage(edit);
showMessage(idx);
default.Form1.ADOQuery3.SQL.Text:='select * from addr_d where '+idx+' like ''%'+edit+'% ''';
showMessage(default.Form1.ADOQuery3.SQL.Text);
default.Form1.ADOQuery3.Open;
end;
没有显示认识信息 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询