Autor Beitrag
D. Annies
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Fr 03.12.10 16:54 
Hi, Delpher,
wie ist der folgende SQL-Befehl richtig?

update "%s" B set B.A_Datum is Null where B.VORNAME = '' and B.NAME = '' and B.KLASSE = ''

Der Folgende geht auch nicht:
update "%s" B set B.A_Datum = '' where B.VORNAME = '' and B.NAME = '' and B.KLASSE = ''

Danke für Hilfe, Detlef

_________________
ut vires desint, tamen est laudanda voluntas
Nersgatt
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1581
Erhaltene Danke: 279


Delphi 10 Seattle Prof.
BeitragVerfasst: Fr 03.12.10 16:56 
UPDATE TABELLE SET FELDNAME = NULL WHERE ....

_________________
Gruß, Jens
Zuerst ignorieren sie dich, dann lachen sie über dich, dann bekämpfen sie dich und dann gewinnst du. (Mahatma Gandhi)

Für diesen Beitrag haben gedankt: D. Annies
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Fr 03.12.10 17:23 
Hi, Nersgatt,
danke, Detlef

_________________
ut vires desint, tamen est laudanda voluntas
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19315
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Fr 03.12.10 17:32 
Wofür haben wir eigentlich den schönen SQL-Highlighter im Forum? ;-)
ausblenden SQL-Anweisung
1:
update xy set a = "b"					
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Fr 03.12.10 20:10 
Benutze besser Parameter. Die SQL-Skripte selber zusammenzubauen, das ist auch unnötig.

_________________
Gruß
Hansa
D. Annies Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1843

windows 7
D6 Enterprise, D7 Pers und TD 2006
BeitragVerfasst: Fr 03.12.10 23:58 
Danke auch an euch beide, Sebastian und Hansa,
Detlef

_________________
ut vires desint, tamen est laudanda voluntas