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 Link to comment https://forums.phpfreaks.com/topic/41999-solved-mysql-database-value/ 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 Link to comment https://forums.phpfreaks.com/topic/41999-solved-mysql-database-value/#findComment-203643 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 Link to comment https://forums.phpfreaks.com/topic/41999-solved-mysql-database-value/#findComment-203644 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.