Autor Beitrag
kerim80
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Di 28.06.05 16:02 
Hallo,
ich benutze delphi5 und Firebird 1.5.

Habe eine Adress-Tabelle und im Programm greife ich auf diese Adresstabelle in form einer liste zu.

ich habe folgende drei datensätze 'özpolat', 'Özpolat' und 'ÖZPOLAT'

ich möchte das wenn der benutzer 'özpolat' eingibt das alle drei datensätze erscheinen.
am besten mit einer teilstringsuche '%özpolat%'


danke für jede hilfe

Moderiert von user profile iconUGrohne: Bold-Tags entfernt.
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Di 28.06.05 19:03 
Du musst die Datenbanken als Zeichensatz z.B. ISO8859_1 verwenden, dann funktioniert das. Außer es gibt bei Interbase da einen Bug, die sind ja nicht allzu selten ;-)
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Di 28.06.05 19:56 
@UGrohne : das ist zu kurz gesprungen ! :mrgreen: Er muß UPPER/lower verwenden !

_________________
Gruß
Hansa
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Mi 29.06.05 13:42 
user profile iconhansa hat folgendes geschrieben:
@UGrohne : das ist zu kurz gesprungen ! :mrgreen: Er muß UPPER/lower verwenden !

Verdammt, da will man zwischen Tür und Angel ne Antwort geben und dann sowas *grrr*. Hab mich wohl an den Ös aufgehängt *g*
direction4delphi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 84

WIN 95, WIN 98, WIN ME, WIN NT, WIN 2000, WIN XP, VISTA
D2 Prof, D4 Prof,D2005 Prof, Delphi4Php
BeitragVerfasst: Mi 29.06.05 13:53 
user profile iconhansa hat folgendes geschrieben:
@UGrohne : das ist zu kurz gesprungen ! :mrgreen: Er muß UPPER/lower verwenden !


er muss ANSIUpperCase verwenden sonst werden umlaute nicht geändert

mfg
MILLI
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Mi 29.06.05 14:36 
user profile icondirection4delphi hat folgendes geschrieben:
er muss ANSIUpperCase verwenden sonst werden umlaute nicht geändert

Nur wenn ers im Delphi-Programm macht, in der DB gibts kein ANSIUPPER. Die einzige Bedingung ist, dass der Zeichensatz auf ISO8859_1 gesetzt wurde, dann geht das in der WHERE-Bedingung:
ausblenden Quelltext
1:
SELECT * FROM tabelle WHERE UPPER(feld) LIKE '%ÖZ%'					
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Mi 29.06.05 17:46 
UGrohne hat wohl jetzt doch die Tür gefunden. :mrgreen: Genauso geht das ! ISO8859_1 für DB auswählen und dann beim Like vorne und hinten ein %. Bei mir kann man nach einem beliebigen Namensbestandteil suchen und nicht nur nach den ersten 3 Buchstaben.

_________________
Gruß
Hansa