目錄 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刪除。