您的位置:首页 > 数据库 > Oracle

Oracle查询数据插入到一个表中

2019-05-15 19:42 489 查看

oracle:查询数据插入到一个表中(存在或不存在的表都可以)

参考地址:https://zhidao.baidu.com/question/2115968730474671987.html

select * into 新表名 from 要查询的表名

表已经存在:

insert into 表名 (列名1.。。 列名n) select 列名1.。。。列名n from 表 where 条件
表不存在.:
oracle:
create table 新表明 as select 列名1.。。。列名n from 表 where 条件
sqlserver:
select 列名1.。。。列名n
into 新表名
from 表 where 条件

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: