天天看点

迁移pgsql数据库表中数据

从数据库到本地: pg_dump 数据库_name -U 用户_name -t 表_name -f 输出.sql

从本地到另一数据库: psql -h ip地址 -d 数据库_name -U 用户_name -password -f 输入.sql