在两个数据库中,创建好相同的表,
执行命令导入:
psql -U postgres -h test01 -d test -c "COPY test01 to STDOUT" | psql -U postgres -h test02 -d test -c "COPY test02 from STDIN;"psql -U po
在两个数据库中,创建好相同的表,
执行命令导入:
psql -U postgres -h test01 -d test -c "COPY test01 to STDOUT" | psql -U postgres -h test02 -d test -c "COPY test02 from STDIN;"psql -U po