postgres匯入其他資料庫資料

來源:互聯網
上載者:User

標籤: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匯入其他資料庫資料

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.