I\'m looking for a way to get all rows as INSERT statements from one specific table within a database using pg_dump in PostgreSQL.
INSERT
pg_dump
E.g., I
If you want to DUMP your inserts into an .sql file:
cd
.sql
pg_dump --column-inserts --data-only --table= > my_dump.sql Note the > my_dump.sql command. This will put everything into a sql file named my_dump 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
Note the > my_dump.sql command. This will put everything into a sql file named my_dump
> my_dump.sql