DELETE de plusieurs lignes et de plusieurs tables? - SQL/NoSQL - Programmation
Marsh Posté le 12-03-2003 à 21:08:07
Mon souci --------- requête SQL : DELETE FROM posts_text USING posts_text, posts WHERE posts_text.post_id=posts.post_id and posts.poster_id=878 MySQL a répondu: You have an error in your SQL syntax near 'USING posts_text, posts WHERE posts_text.post_id=posts.post_id and posts.poster_' at line 1 Retour La doc ------
DELETE t1,t2 FROM t1,t2,t3 WHERE t1.id=t2.id AND t2.id=t3.id or DELETE FROM t1,t2 USING t1,t2,t3 WHERE t1.id=t2.id AND t2.id=t3.id In the above case we delete matching rows just from tables t1 and t2.
Jcomprends pas
Marsh Posté le 12-03-2003 à 21:12:00
http://forum.hardware.fr/forum2.ph [...] h=&subcat= meme problème apparemment
Marsh Posté le 13-03-2003 à 08:55:43
ok pb de version merci
Make sure you enter the(*)required information where indicate.HTML code is not allowed
Marsh Posté le 12-03-2003 à 21:08:07
Mon souci
---------
requête SQL :
DELETE FROM posts_text USING posts_text, posts WHERE posts_text.post_id=posts.post_id and posts.poster_id=878
MySQL a répondu:
You have an error in your SQL syntax near 'USING posts_text, posts WHERE posts_text.post_id=posts.post_id and posts.poster_' at line 1
Retour
La doc
------
DELETE t1,t2 FROM t1,t2,t3 WHERE t1.id=t2.id AND t2.id=t3.id
or
DELETE FROM t1,t2 USING t1,t2,t3 WHERE t1.id=t2.id AND t2.id=t3.id
In the above case we delete matching rows just from tables t1 and t2.
Jcomprends pas