1秒登录
目录 AS(通用) PG特有
目录
create table test(id serial, name varchar(10)); insert into test(name) values('a'),('b'),('c'); create table test2 as select * from test;
-- 注意,test3应该是还没创建的新表
select * into test3 from test;
create table test_t2 (like test_t1); --只创建表结构
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。