@ vagtler
Aber jetzt:
Delphi-Quellcode:
with Query1
do
begin
Active:=False;
SQL.Clear;
SQL.Add('
Select * from tabelle1 where feld001 Like :text1 ');
SQL.Add('
And Upper (feld002) Like Upper (:text2) ');
SQL.Add('
Union All Select * from tabelle2 where feld001 Like :text1 ');
SQL.Add('
And Upper (feld002) Like Upper (:text2) ');
ParamByName('
text1').asString := SQLString1;
ParamByName('
text2').asString := SQLString2;
Active:=True;
end;
@ shmia
Ich hoffe ich gebe Dir erschöpfend Auskunft:
Code:
Tabelle 1 Feld001 varChar 50
Feld002 varchar 250
Tabelle 2 Feld001 varchar 50
Feld002 varchar 250