Transfer data between databases with PostgreSQL

前端 未结 9 1514
我寻月下人不归
我寻月下人不归 2020-12-22 17:51

I need to transfer some data from another database. The old database is called paw1.moviesDB and the new database is paw1. The schema of each table are the following.

<
9条回答
  •  误落风尘
    2020-12-22 18:05

    You can not perform a cross-database query like SQL Server; PostgreSQL does not support this.

    The DbLink extension of PostgreSQL is used to connect one database to another database. You have install and configure DbLink to execute a cross-database query.

    I have already created a step-by-step script and example for executing cross database query in PostgreSQL. Please visit this post: PostgreSQL [Video]: Cross Database Queries using the DbLink Extension

提交回复
热议问题