Hi all!

I've got this piece of SELECT statement for MySql.

SELECT *
FROM messages
LEFT OUTER JOIN main
ON messages.topicid=main.topicid
WHERE main.topicid is null;

so the select statement works fine. But what I'd like to do is actually 
delete those rows instead. but substituting SELECT with DELETE doesn't work :(

Please help! i'm pulling out my hair........


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to