Autor Beitrag
susi_777
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Di 07.10.08 18:46 
Hallo,

mein "Problemcode" ist wie folgt:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
    with SQL do begin
    sql.Clear;
    Add('SELECT * FROM daten WHERE inhalt like "' + suchwort + '%" ');
    Open;
    end;


suchwort ist zum Beispiel: wort%

Wie kann ich nun % bei einer ADO-Abfrage maskieren?

Gruß
Susi

Sorry, bin im falschen Forum - sollte eigentlich in Datenbanken ...


Moderiert von user profile iconNarses: Topic aus Dateizugriff verschoben am Di 07.10.2008 um 23:15
susi_777 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Di 07.10.08 20:38 
Hat sich erledigt.
damit geht es:
suchwort ist zum Beispiel: wort[%]
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19315
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Di 07.10.08 20:47 
Eine andere Möglichkeit ist soweit ich das verstanden habe mittels ESCAPE:
search400.techtarget...d3_gci870464,00.html
susi_777 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Di 07.10.08 23:28 
Vielen Dank, das werde ich noch einmal testen.