Jump to content

MySQL SELECT query


Woodburn2006

Recommended Posts

i am trying to get results from a DB where you search for a false condition.

for example, if i wanted to search for a 21 year old in my table, i would use: Select from tablename where age='21'

but what i want to do is search for everybody who is not 21. so the code would be something like this: SELECT FROM tablename WHERE (age is not equal to)21

hard to explain but if anybody has any ideas then please let me know
thanks
Link to comment
https://forums.phpfreaks.com/topic/13853-mysql-select-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.