Jump to content

using the right syntax for mysql update?


proud

Recommended Posts

 

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 ;";

Link to post
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.