This is an easy and fast way to export a table to a script with pgAdmin manually without extra installations:
- Right click on target table and select "Backup".
- Select a file path to store the backup. As Format choose "Plain".
- Open the tab "Dump Options #2" at the bottom and check "Use Column Inserts".
- Click the Backup-button.
- If you open the resulting file with a text reader (e.g. notepad++) you get a script to create the whole table. From there you can simply copy the generated INSERT-Statements.
Step#1:
Step#2:
Step#3:
Step#4:
No comments:
Post a Comment