proud Posted February 18, 2007 Share Posted February 18, 2007 I'm trying to subtract 1 from a field called reply but i dont know what is the right syntax to use? The red part is where the syntax needs to be corrected... UPDATE `forum_question` SET `reply` = `reply-1` WHERE `forum_question`.`id` =3 ;"; Quote Link to comment https://forums.phpfreaks.com/topic/38974-using-the-right-syntax-for-mysql-update/ Share on other sites More sharing options...
fenway Posted February 18, 2007 Share Posted February 18, 2007 You mean `reply`-1.... Quote Link to comment https://forums.phpfreaks.com/topic/38974-using-the-right-syntax-for-mysql-update/#findComment-187610 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.