单表导出
pg_dump --host 127.0.0.1 --port 5432 --username "postgres" --role "postgres" --file "D:/test.sql" --table "public.\"表名\"" "数据库名"
单表导入
psql -h localhost -p 5432 -U postgres -d beijing -f test.sql
单表导出
pg_dump --host 127.0.0.1 --port 5432 --username "postgres" --role "postgres" --file "D:/test.sql" --table "public.\"表名\"" "数据库名"
单表导入
psql -h localhost -p 5432 -U postgres -d beijing -f test.sql