1、cmd下执行sql语句 psql -h localhost -U postgres -f D:/test.sql 转载于:https://www.cnblogs.com/19940330a/p/9562440.html