Copy a table from one database to another in Postgres

前端 未结 19 1255
慢半拍i
慢半拍i 2020-11-28 00:21

I am trying to copy an entire table from one database to another in Postgres. Any suggestions?

19条回答
  •  庸人自扰
    2020-11-28 01:06

    I was using DataGrip (By Intellij Idea). and it was very easy copying data from one table (in a different database to another).

    First, make sure you are connected with both DataSources in Data Grip.

    Select Source Table and press F5 or (Right-click -> Select Copy Table to.)

    This will show you a list of all tables (you can also search using a table name in the popup window). Just select your target and press OK.

    DataGrip will handle everything else for you.

提交回复
热议问题