PostgreSQL安装:https://www.cnblogs.com/gradven/p/8719771.html
/usr/bin/psql -h 192.168.2.9 -p 42345 -U postgres -d postgres -c "copy (select * from gmp_ris_resource_optimization_week) to stdout with csv " > aaa.txt
PostgreSQL安装:https://www.cnblogs.com/gradven/p/8719771.html
/usr/bin/psql -h 192.168.2.9 -p 42345 -U postgres -d postgres -c "copy (select * from gmp_ris_resource_optimization_week) to stdout with csv " > aaa.txt
转载于:https://my.oschina.net/u/3272146/blog/1788300