asmith Posted December 11, 2007 Share Posted December 11, 2007 can i select from mysql tables where some column aren't equal so eomthing ? like select * from table where name != john ? all rows execpt the rows which their name is john . is that possible ? Quote Link to comment Share on other sites More sharing options...
trq Posted December 11, 2007 Share Posted December 11, 2007 Funnily enough.... select * from table where name != 'john' Quote Link to comment Share on other sites More sharing options...
asmith Posted December 11, 2007 Author Share Posted December 11, 2007 didnt know mysql have ! sybbol as the way it works in php !!!!! Quote Link to comment Share on other sites More sharing options...
fenway Posted December 11, 2007 Share Posted December 11, 2007 Just remember this isn't index-friendly. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.