Autor Beitrag
Karstadt
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Mo 10.10.05 12:13 
Hallo. Ich möchte überprüfen bei Welchen DS in einen bestimmte feld nichts eingetrage ist.

z.B. Vorname = ''

So Funktioniert das nicht:

SQL.add('Select * From Tabelle);
SQL.add('where Feld = "''"');

Wie mache ich das?
Alpha_Wolf
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 297

Ubuntu, Win XP, Win Vista
C#, Delphi 6 Prof, Delphi 2007 Prof, Java
BeitragVerfasst: Mo 10.10.05 12:19 
Zum Beispiel so:

ausblenden SQL-Anweisung
1:
2:
SELECT * FROM meineTabelle
WHERE feldName1 IS NULL


= NULL funktioniert nicht.. nur mit IS und IS NOT

_________________
Diskutiere nie mit einem Irren - er zieht dich auf sein Niveau und schlägt dich mit seiner Erfahrung.
Karstadt Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Mo 10.10.05 14:14 
Danke. :)