[英]how do we copy external tables from one schema to another schema in same postgresql database
I have two schema's in one database我在一个数据库中有两个架构
1) public
2) test
In public i have list of external tables like在公共场合,我有外部表的列表,例如
ext_table1,ext_table_2,ext_table_3
How do i copy those tables to test schema from public in the same database?如何从同一数据库中的公共复制这些表以测试模式?
If you want to move them, then just do that:如果你想移动它们,那么就这样做:
alter table ext_table1 set schema test;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.