SQL保存查询结果——生成新表

将查询结果生成新表

在同一数据库中

select <表达式列表> into <新表名> form 原来的表

select * into 新表名 form 原来的表

 

基于多表查询的DML

update 表名 set 字段=‘’ where 子查询update 表名 set 字段=‘’ from 表1 join 表2 on A=B where 条件

 

posted @ 2020-05-24 12:36  羽若星辰  阅读(15450)  评论(0编辑  收藏  举报