Ik probeer het volgende statement uit te voeren:
DELETE FROM `download`, `able`, `file` WHERE download.abler = able.id AND able.file = file.id AND file.id = '5';
Maar krijg dan de volgende error:
#1064 - You have an error in your SQL syntax near ' `able`, `file` WHERE download.abler = able.id AND able.file = file.id AND file.' at line 1
Als ik dit probeer:
DELETE FROM `download` WHERE download.abler = able.id AND able.file = file.id AND file.id = '5';
Ik krijg de volgende (logische) error:
#1109 - Unknown table 'able' in where clause
Van http://dev.mysql.com/doc/mysql/en/DELETE.html
Heeft iemand een mogelijke oplossing, anders dan upgraden naar 4.0?
DELETE FROM `download`, `able`, `file` WHERE download.abler = able.id AND able.file = file.id AND file.id = '5';
Maar krijg dan de volgende error:
#1064 - You have an error in your SQL syntax near ' `able`, `file` WHERE download.abler = able.id AND able.file = file.id AND file.' at line 1
Als ik dit probeer:
DELETE FROM `download` WHERE download.abler = able.id AND able.file = file.id AND file.id = '5';
Ik krijg de volgende (logische) error:
#1109 - Unknown table 'able' in where clause
Van http://dev.mysql.com/doc/mysql/en/DELETE.html
Moet ik hieruit concluderen dat ik óf moet upgraden naar 4.0 (ik draai nu 3.23), óf geen 'diepe' DELETE kan doen?From MySQL 4.0, you can specify multiple tables in the DELETE statement to delete rows from one or more tables depending on a particular condition in multiple tables. However, you cannot use ORDER BY or LIMIT in a multiple-table DELETE.
Heeft iemand een mogelijke oplossing, anders dan upgraden naar 4.0?