关键字 update

修改单个字段

  1. update 表名 set 字段名 = 值 where 条件;

修改多个字段

  1. update 表名 set 字段名1 = 值1,字段名2 = 值2,... where 条件

示例:

  1. UPDATE `student` SET ssex='女',class=38756 WHERE sname='王大锤'

;