我只想在Postgres的同一个DB中从schema1复制4个表到schema2.我也想把这些表也保留在schema1中.你知道如何在pgadmin和postgres控制台上做到这一点吗?
我只想在Postgres的同一个DB中从schema1复制4个表到schema2.我也想把这些表也保留在schema1中.你知道如何在pgadmin和postgres控制台上做到这一点吗?
你可以用create table ... like
create table schema2.the_table (like schema1.the_table including all);
然后将数据从源插入目标:
insert into schema2.the_table
select *
from schema1.the_table;