I’m trying to select from table, excluding where id is something, say 7.
I have tried:
SELECT * FROM table where not exists(select * from table where user_id = ‘7’);
Could anyone direct my to a place where I could get info on this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can do:
You can find more comparison operators via the Mysql Docs on the subject.