MySQL Forums
Forum List  »  Newbie

EXCEPT AND MySQL
Posted by: panagiotis ne
Date: February 03, 2012 07:11PM

Hello,
I want to select all records EXCEPT some. Can I do that with MySQL?


Here is my query:
$result2 = mysql_query("SELECT id_armodiotitas from armodiotites EXCEPT SELECT perigrafi,id_armodiotitas FROM armodiotites,armodiotites_users WHERE iduser = '$id' AND id_armodiotitas=idarmodiotitas");


And I get this error message: 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 'EXCEPT ( SELECT perigrafi,id_armodiotitas FROM armodiotites,armodiotites_users W' at line 1

Can anyone help me?

Options: ReplyQuote


Subject
Written By
Posted
EXCEPT AND MySQL
February 03, 2012 07:11PM
February 03, 2012 07:38PM
February 04, 2012 01:43AM
February 06, 2012 08:37AM


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.