Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Datenbanken (https://www.delphipraxis.net/15-datenbanken/)
-   -   Delphi SQL Like Groß-und Kleinschreibung (https://www.delphipraxis.net/9529-sql-like-gross-und-kleinschreibung.html)

Robert_G 26. Nov 2003 14:19

Re: SQL Like Groß-und Kleinschreibung
 
Bist du sicher, dass du keine Quotes(') in deinem RichEdit hast?
Versuchs mal so:
Delphi-Quellcode:
Ds.SelectSQL.Text := 'SELECT *' + #13#10 +
                     'FROM  xyz' + #13#10 +
                     'WHERE field1 LIKE ' QuotedStr(RichEdit1.Text);
// Oder

Ds.SelectSQL.Text := 'SELECT *' + #13#10 +
                     'FROM  xyz' + #13#10 +
                     'WHERE field1 LIKE '+#39+'%'+StringReplace(RichEdit1.Text,#39,#39#39,[rfReplaceAll])+'%'+#39;


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:53 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz