Autor Beitrag
mafiaente
Hält's aus hier
Beiträge: 11



BeitragVerfasst: Mi 24.01.07 19:08 
hallo,
also mein problem ist, das ich nicht weiß wie ich nach einem datensatz innerhalb einer tabelle suche, wenn ich als suchbegriff beispielsweise nur "Schm*" statt "Schmidt" eingebe, sodass sowohl die "schmitt" als auch "schmidt" angezeigt wird! halt so allgemin, das der man nur ein teil eingeben muss der innerhalb eines datensatzes gesucht werden soll!
un dann würd ich noch gern wissen wie man das macht, das er "Schmidt" auch findet wenn ich "schmidt" (also kleingeschrieben) eingebe!
hoffe ihr versteht mein problem un könnt mir helfen!
DarkHunter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 477

Win XP
D3 Prof, D2005 PE
BeitragVerfasst: Mi 24.01.07 19:33 
Das unter Windows bekannt Wildcard zeichen "*" ist unter MySQL "%"

ausblenden SQL-Anweisung
1:
SELECT * FROM tabelle WHERE name LIKE 'schm%'					

Findet sowohl "Schmidt" als auch "Schmidt"

_________________
I believe that every human has a finite number of heart-beats. I don't intend to waste any of mine running around doing exercises.
- Neil Armstrong
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Do 25.01.07 07:52 
Zitat:
Findet sowohl "Schmidt" als auch "Schmidt"
Würde die Abfrage auch ohne Like :mrgreen:
Nicht aber "Schmidt" und "Schmitt"

_________________
Markus Kinzler.