DELETE de plusieurs lignes et de plusieurs tables?

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
------

Citation :

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 :/

Reply

Marsh Posté le 12-03-2003 à 21:08:07   

Reply

Marsh Posté le 12-03-2003 à 21:12:00    

http://forum.hardware.fr/forum2.ph [...] h=&subcat=
meme problème apparemment  [:spamafote]


---------------
.: Clône de Drasche .:. Ebichuleys .:. Avec l'Aloe Vera je fais de beaux cacas [:dawa] .: www.oserselancer.com :.
Reply

Marsh Posté le 13-03-2003 à 08:55:43    

ok pb de version :/
merci  :jap:

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed