Ich will 2 Datenbanktabellen löschen:
Ich gehe mal davon aus, dass du IN zwei DB-Tabellen löschen willst und nicht beide komplett.
DELETE FROM kunden, createdbackups WHERE kunden.id = createdbackups.currentID AND kunden.id = 1
Das klappt aber nicht.
Könnt ihr mir weiterhelfen? Ich weiß nicht was ich noch probieren kann...
DELETE über mehrere Tabellen:
A) Es werde nur Sätze in table1 gelöscht, die gemäß WHERE-Clause einen Treffer in table 2 haben:
DELETE table1
FROM table1, table2
WHERE table1.key = table2.key
and table2.type = 'd';
B) Sätze in beiden Tabellen löschen:
DELETE table1, table2
FROM table1, table2
WHERE table1.key = table2.key
and table2.type = 'd'
War es das, was du suchst?
Gruß
Tibia