将postgresql中指定的database导出为sql文件
在使用postgresql时, 有时候需要将database导出为sql文件, 以便于在其他环境中使用.
解决方案
pg_dump --column-inserts --data-only --table=<table> <database>
该命令会将<database>中的<table>导出为sql文件
postgresql中指定的database导出为sql文件在使用postgresql时, 有时候需要将database导出为sql文件, 以便于在其他环境中使用.
pg_dump --column-inserts --data-only --table=<table> <database>
该命令会将<database>中的<table>导出为sql文件