pgsql2shp和postsql命令行乱码

时间:2021-05-24 07:36:44   收藏:0   阅读:0

1、命令行乱码

  

设置环境变量PGCLIENTENCODING为GBK,退出PostgreSQL后重新登陆。

技术图片

 

 2、pgsql2shp命令

pgsql2shp -f D:/yhmap/nyc_streets.shp -h 172.23.1.5 -u postgres -P qsxwdc -p 8862 yh_map  "SELECT tt.id,tt.name from  yh_map_meterbox tt where tt.display=‘水表箱‘ ";

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!