標籤:postgres sqlserver sqllite
最近對postgres資料庫進行深入研究,將原來項目中使用的sqlserver資料庫中的資料表匯入postgres,網上搜尋postgres資料匯入,除空間資料庫可以通過PostGIS 2.0 Shapefile and DBF Loader Exporter進行匯入外,沒發現其他的資料匯入工具。
今天使用Navicat Preminm操作資料庫時,偶然發現可以使用其資料轉送菜單,從其他資料庫中匯入資料到postgres,利用此菜單可以將mysql、oracle、sqlserver、sqlite等資料庫表匯入postgres。特此貼圖,希望能給其他資料庫轉換到postgres的朋友一些參考,直接:
選擇Navicat Premium中的工具菜單下的資料轉送菜單,介面如:
650) this.width=650;" src="https://s5.51cto.com/wyfs02/M01/92/2C/wKioL1j8wZXgAe0hAACDN96H43Q393.png-wh_500x0-wm_3-wmp_4-s_1822591759.png" title="postgres資料匯入一.png" style="float:none;" alt="wKioL1j8wZXgAe0hAACDN96H43Q393.png-wh_50" />
這裡我選擇的是匯入sqlserver資料庫中的幾張表,點擊開始後進行資料轉送,傳輸完成時:
650) this.width=650;" src="https://s5.51cto.com/wyfs02/M01/92/2C/wKioL1j8wZPDtldAAACyG8Uw6cs345.png-wh_500x0-wm_3-wmp_4-s_2087441261.png" style="float:none;" title="postgres資料匯入二.png" alt="wKioL1j8wZPDtldAAACyG8Uw6cs345.png-wh_50" />
在postgres中查看剛匯入的資料:
650) this.width=650;" src="https://s5.51cto.com/wyfs02/M02/92/2C/wKiom1j8wZSTXdRPAAB7D_Zy0vA585.png-wh_500x0-wm_3-wmp_4-s_3792070241.png" style="float:none;" title="postgres資料匯入三.png" alt="wKiom1j8wZSTXdRPAAB7D_Zy0vA585.png-wh_50" />
此處我只進行了sqlserver資料庫的表的匯入,其他資料庫沒有實際測試過,但我想應該是一樣的。
本文出自 “開源GIS離線地圖” 部落格,請務必保留此出處http://cdguiyi.blog.51cto.com/4275617/1918691
postgres匯入其他資料庫資料