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;