pkirsch Posted March 9, 2007 Share Posted March 9, 2007 Hello! Really easy question! I need help finding the best way to check a Value (Eg. "14") in a MySQL Database and + or - from that number! I'm hoping this is pretty easy, but i couldn't find documentation for this! Thanks pkirsch Quote Link to comment Share on other sites More sharing options...
per1os Posted March 9, 2007 Share Posted March 9, 2007 You can do operations in MySQL. Here is an example query: SELECT column1 FROM table1 WHERE column2 <> 14 SELECT column1 FROM table1 WHERE column2 > 14 SELECT column1 FROM table1 WHERE column2 < 14 SELECT column1 FROM table1 WHERE (column2 - 7) = 14 SELECT column1 FROM table1 WHERE (column2 + 7) = 14 Hope that helps any. --FrosT Quote Link to comment Share on other sites More sharing options...
pkirsch Posted March 9, 2007 Author Share Posted March 9, 2007 Yes indeed it does! Thank You very Much! Have A Great Day! :D 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.