修改单表的记录
/
update 表名
set 列=新值 ,列=值……
where 筛选条件;
/
# 修改beauty表中 ban的名字为bxq

UPDATE beauty
SET beauty.name = ‘bxq’
WHERE beauty.name = ‘ban’;

select * from beauty;

修改多表的记录
/
update 表1 别名
inner|left|right join 表2 别名
on 连接条件
set 列=值,列=值 ……
where 筛选条件
/