若有一 string strA=tom’s要輸入資料庫
MS-SQL為strA=strA.replace(”‘”,”/’”)
斜線單引號
postgreSQL為strA=strA.replace(”‘”,”””)
包爾伯 發表在 痞客邦 留言(0) 人氣(2,441)
範例
在postgre dos模式下
shp2pgsql “D:\Share\Alvin\scbtaiwan\SCB_TWN_grid\大台北\grid” “grid” > D:\Share\Alvin\scbtaiwan\SCB_TWN_grid\大台北\grid.txt”
包爾伯 發表在 痞客邦 留言(0) 人氣(433)
1.要先建立檔案,ex:Test.txt
2.然後必須要開權限給Everyone
3.指令
copy “tblgovdata” TO E’c:\\Test.txt’
包爾伯 發表在 痞客邦 留言(0) 人氣(633)