1.格式示範
update 表名稱 set 字段名稱 = 字段名稱 + 1 [ where語句]
2.代碼示範
比如有一個article表,表裏面有一個point字段,現在讓point字段在原來的值加一
update article set point = point+1 where article_id = 1000
update 表名稱 set 字段名稱 = 字段名稱 + 1 [ where語句]
比如有一個article表,表裏面有一個point字段,現在讓point字段在原來的值加一
update article set point = point+1 where article_id = 1000