Jump to content

EXISTS and NOT EXISTS


LorenzoR

Recommended Posts

What´s wrong with this query?SELECT users_nick FROM users WHERE NOT EXISTS (SELECT users_nick FROM users WHERE users_nick = "admin");It gives me this message error: "ERROR 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 'EXISTS (SELECT users_nick FROM users WHERE users_nick = "admin"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...