Autor Beitrag
coder24h
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48



BeitragVerfasst: Mo 07.11.05 21:06 
Hallo zusammen!

Kann man eine SQL-Anweisung definieren, die alle Felder einer Tabelle ausgibt die mit „u“ anfangen?
Ich habe es so probiert, was aber leider nicht funktioniert:
ausblenden Quelltext
1:
SELECT name FROM t_article WHERE name='u*'					


Mit freundlichen Grüßen
coder24h
Stefan.Buchholtz
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 612

WIN 2000, WIN XP, Mac OS X
D7 Enterprise, XCode, Eclipse, Ruby On Rails
BeitragVerfasst: Di 08.11.05 11:07 
Dafür gibt es den like-Operator. Das Wildcard-Zeichen ist bei SQL auch nicht * sondern %:

ausblenden SQL-Anweisung
1:
SELECT name FROM t_article WHERE name like 'u%'					


Stefan
coder24h Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48



BeitragVerfasst: Di 08.11.05 18:29 
Hallo Stefan.Buchholtz, :wave: ich bedanke mich ganzherzlich, denn du hast mir gerade das Leben gerettet!
Danke und viele Grüße
coder24h
Stefan.Buchholtz
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 612

WIN 2000, WIN XP, Mac OS X
D7 Enterprise, XCode, Eclipse, Ruby On Rails
BeitragVerfasst: Di 08.11.05 18:31 
user profile iconcoder24h hat folgendes geschrieben:
Hallo Stefan.Buchholtz, :wave: ich bedanke mich ganzherzlich, denn du hast mir gerade das Leben gerettet!
Danke und viele Grüße
coder24h


Da muss ich mich ja glatt für das Bundesverdinestkreuz vorschlagen :wink:

Stefan
coder24h Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48



BeitragVerfasst: Di 08.11.05 18:36 
Ganz meine Meinung ;)