PostgreSQL

pg导出导入copy格式的数据

2020-02-26  本文已影响0人  sundyandy

导出
pg_dump -U [username] -h [host] -p [port] -t [tablename] -f /tmp/file.sql [database]

导入
D:\Program Files (x86)\PostgreSQL\9.5\bin>psql.exe -U postgres -f in.sql dbname

上一篇 下一篇

猜你喜欢

热点阅读