(一)修改单表的记录
语法:
update 表名
set 列=新值,列=新值,...
where 筛选条件;
(二)修改多表的记录
语法:
sql192语法:
update 表1 别名,表2
别名 set 列=值,...
where 连接条件 and 筛选条件;
sql199语法:
update 表1 别名
inner|left|right join 表2 别名
on 连接条件
set 列=值,...
where 筛选条件;
(一)修改单表的记录
语法:
update 表名
set 列=新值,列=新值,...
where 筛选条件;
(二)修改多表的记录
语法:
sql192语法:
update 表1 别名,表2
别名 set 列=值,...
where 连接条件 and 筛选条件;
sql199语法:
update 表1 别名
inner|left|right join 表2 别名
on 连接条件
set 列=值,...
where 筛选条件;