爱喝酒的幸福人

关注

create table as select from和 insert into select from的用法

爱喝酒的幸福人

关注

阅读 110

2023-03-09

复制表(含数据): create table table_name2 as select * from table_name1

复制表(不含数据): create table table_name2 as select * from table_name1 where 1=2

只复制表数据:insert into table_name2 select * from table_name1 ​


相关推荐

一叶轻舟okok

SELECT 1 FROM TABLE的作用

一叶轻舟okok 99 0 0

爪哇驿站

select * from table where 1<>1

爪哇驿站 116 0 0

海牙秋天

.NET from-where-select用法

海牙秋天 15 0 0

那小那小

在SQL Server中,`SELECT * FROM table`和`SELECT * FROM dbo.table`的区别主要在于是否指定了架构(schema)¹²。 - `SELECT * F

那小那小 41 0 0

小桥流水2016

select 变量=。。。 from 表

小桥流水2016 76 0 0

金穗_ec4b

select 1 from 表名

金穗_ec4b 69 0 0

爱我中华8898

select from update row的实现

爱我中华8898 88 0 0

攻城狮Chova

拷贝的表的SQL语句 SELECT INTO 和 INSERT INTO SELECT的用法与区别

攻城狮Chova 33 0 0

yundejia

sql = fr"select * from sys.tables where name like '%{table}%'"

yundejia 13 0 0

Ichjns

create table like 和create table as select的区别对比,mysql和oracle复制表

Ichjns 93 0 0

精彩评论(0)

0 0 举报