MySQL Forums
Forum List  »  Newbie

SELECT...FROM...WHERE NOT EXISTS... doesn't work
Posted by: Nik Korfhage
Date: June 25, 2005 09:17AM

Hello,
I cannot recognize the syntax error in this query:

SELECT topic_id, FROM `phpbb_topics`
WHERE
NOT EXISTS (SELECT * FROM `phpbb_posts`,
WHERE phpbb_posts.post_id = phpbb_topics.topic_last_post_id)

returns:
#1064 - You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'FROM `phpbb_topics`
WHERE
NOT EXISTS (SELECT * FROM `phpbb_

Can anyone help me? Thanks.

Options: ReplyQuote


Subject
Written By
Posted
SELECT...FROM...WHERE NOT EXISTS... doesn't work
June 25, 2005 09:17AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.