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 version < 8.4.0
pg_dump -D -t Add -a before the -t if you only want the INSERTs, without the CREATE TABLE etc to set up the table in the first place. version >= 8.4.0 pg_dump --column-inserts --data-only --table= 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
Add -a before the -t if you only want the INSERTs, without the CREATE TABLE etc to set up the table in the first place.
-a
-t
version >= 8.4.0
pg_dump --column-inserts --data-only --table= 0 讨论(0) 查看其它4个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题