复制代码 代码如下:
update `info` set `comments` = `comments`+1 WHERE `id` = 32
复制代码 代码如下:
update `info` set `comments` = `comments`-1 WHERE `id` = 32
复制代码 代码如下:
update `info` set `comments` = IF(`comments`< 1,0,`comments`-1) WHERE `id` = 32
复制代码 代码如下:
update `info` set `comments` = IF(`comments`<1, 0, `comments`-1) WHERE `id` = 32
新闻热点
疑难解答