復制代碼 代碼如下:
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
新聞熱點
疑難解答