... ist das möglich?
Möchte gerne so was in der Art machen:
UPDATE tabelle1,tabelle2 SET tabelle1.id_tabelle2 = tabelle2.id_tabelle2 WHERE tabelle2.id = tabelle1.id;
bzw.:
UPDATE tabelle1 LEFT JOIN tabelle2 SET tabelle1.id_tabelle2 = tabelle2.id_tabelle2 WHERE tabelle2.id = tabelle1.id;
Ich möchte alle tabelle1.id_tabelle2 ändern, wo tabelle2.id = tabelle1.id
Klappt nur leider nicht.
http://www.mysql.de/doc/de/UPDATE.html
<- ist das wirklich alles was man mit UPDATE machen kann?
Nachtrag:
Sieht schlecht aus
http://www.mysql.com/doc/de/TODO_future.html
Möchte gerne so was in der Art machen:
UPDATE tabelle1,tabelle2 SET tabelle1.id_tabelle2 = tabelle2.id_tabelle2 WHERE tabelle2.id = tabelle1.id;
bzw.:
UPDATE tabelle1 LEFT JOIN tabelle2 SET tabelle1.id_tabelle2 = tabelle2.id_tabelle2 WHERE tabelle2.id = tabelle1.id;
Ich möchte alle tabelle1.id_tabelle2 ändern, wo tabelle2.id = tabelle1.id
Klappt nur leider nicht.
http://www.mysql.de/doc/de/UPDATE.html
<- ist das wirklich alles was man mit UPDATE machen kann?
Nachtrag:
Sieht schlecht aus

http://www.mysql.com/doc/de/TODO_future.html
Kommentar