14.DML语句的学习(二)——修改表单

(一)修改单表的记录

语法:

update 表名

set 列=新值,列=新值,...

where 筛选条件;

(二)修改多表的记录

语法:

sql192语法:

update 表1 别名,表2

别名 set 列=值,...

where 连接条件 and 筛选条件;

sql199语法:

update 表1 别名

inner|left|right join 表2 别名

on 连接条件

set 列=值,...

where 筛选条件;

发布了90 篇原创文章 · 获赞 48 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/Asher_S/article/details/89478388
今日推荐