0

I am new to PostgreSQL and have some questions.

  1. What is the best way to import/export tables with PostgreSQL? I know .csv is one way, but are there any easier methods?

  2. Let's say I have created a data model in Excel, with many tables and relationships... Can I import that data model directly into PostgreSQL? I am also wondering about this for MySQL as well.

2 Answers 2

1

There is a native way for export/import in psql utility - COPY function:

Import Excel Data into PostgreSQL 9.3

Export Postgres table to CSV file with headings

Also, you can use pg_dump to export data in SQL format as Tommasso said.

Sign up to request clarification or add additional context in comments.

Comments

0

1) The "native" Postgres method is using pg_dump / pg_restore:

2) No, there is not native methods. Maybe with external tools

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.