1、修改
update 表名 set colnum_name=value,[colnum_name=value,…] where [条件]
update 修改谁 (条件) set 原来的值 = 新值



where 能够写什么?
运算符
由于菜鸟教程学过了,所以这里没有写了
- colnum_name 是数据库的列,尽量带上``
- 如果没有指定筛选的条件,则回修改所有的列
- value 是一个具体的值,也可以是一个变量,如:
update student
set birthday
=current_time where id
=1 and sex=‘male’
