Autor Beitrag
NTM
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 120

Win XP
2005 Prof
BeitragVerfasst: Di 18.10.05 09:49 
Hallo zusammen kann mir einer ein SQL Statment geben wie ich einen Wert x in denn Wert y ändern kann.
Ich benutze eine Access Datenbank mit Anbindung über einer Query Komponente.
Nun möchte ich wenn ich ein Button drücke das alle Werte die denn Wert x haben in denn Wert y geändert werden.
Martin1966
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1068

Win 2000, Win XP
Delphi 7, Delphi 2005
BeitragVerfasst: Di 18.10.05 09:57 
Also in MySQl sieht das wie folgt aus. Ich denke das es so bei den meisten DBs geht:
ausblenden SQL-Anweisung
1:
UPDATE `tabelle` SET `feld` = 'wert' WHERE `feld` = 123;					


Lg Martin
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Di 18.10.05 10:33 
Quotes um Tabellen- und Feldnamen weg und dann gehts wohl auch in anderen dB (ohne gewähr).

_________________
Na denn, dann. Bis dann, denn.