简体   繁体   English

我们如何将外部表从一个模式复制到同一 postgresql 数据库中的另一个模式

[英]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.

相关问题 如何编写 Function 将表或数据从一个模式复制到另一个模式 PostgreSql - How to write Function to copy tables or data from one schema to another schema in PostgreSql 在 MySql 中将表和数据从一种模式复制到另一种模式的脚本 - Script to copy tables and data from one schema to another in MySql 有没有一种优雅的方法可以将同一数据库中的整个行复制到另一个数据库 - Is there an elegant way to copy an entire row from one database to another with same schema PostgreSQL如何创建数据库或模式的副本? - PostgreSQL how to create a copy of a database or schema? 在Oracle中的另一个架构中复制表格形式的架构 - Copy tables form schema in another schema in Oracle 如何使用SQLDEV中的PL / SQL高级脚本创建一个脚本,将表从另一个模式复制到我的模式中? - How to create a script that will copy tables from another schema into my schema using PL/SQL advanced scripting in SQLDEV? 如何将函数复制到另一个模式? - How do I copy a function to another schema? 如何编写存储过程以从不同架构的另一个表更新一个架构的一个表? - How do I write stored procedures to update one table of one schema from another table of a different schema? 如何从一个模式导出数据以插入具有相同结构的另一个模式 - How can I export data from one schema to insert on another schema with the same structure Postgresql - 如何在具有相同模式的多个表上运行查询 - Postgresql - how to run a query on multiple tables with same schema
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM