![]() |
Hiyis,
How do I state in an SQL query that I want to get all results EXCEPT those with a particular value? EG: SELECT * FROM forum,othertable WHERE displayorder<>0 AND active=1 AND forumid!=othertablefield This isn't working, so I'm assuming that's incorrect useage... IS it possible? (ie, I want all results except those where forumid matches the value in othertablefield) Thanks:) Mark |
You use <> to signify NOT EQUAL, not !=.
|
Ah-ha! Thanks Freddie :D
|
Although != also works (or at least on some versions of MySQL).
|
Neither is working for me, tho I'm guessing it's the way I'm wording the SQL call rather than using <> or !=
I shall struggle on :) |
All times are GMT. The time now is 02:43 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|