Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

copy postgres table from one schema into another

create table schema2.the_table (like schema1.the_table including all);
insert into schema2.the_table
select * 
from schema1.the_table;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #copy #postgres #table #schema
ADD COMMENT
Topic
Name
5+5 =