[postgres@ab50dcf74584 /]$ psql -X -d testdb -c "\\copy person to stdout" \
>| \
> psql -X -d testdb -c "\\copy person1 from stdin";
COPY 8
3.结果查看
[postgres@ab50dcf74584/]$ psql -d testdb;
psql (10.10)Type"help"for help.
testdb=# select * from person1;no| name
----+------1| Tom
2| Jack
1| Tom
2| Jack
1| Tom
2| Jack
1| Tom
2| Jack
(8rows)