資料庫表互導

2021-09-01 03:11:59 字數 688 閱讀 1481

使用軟體:mysqlmigrationtool

執行軟體後,點next進入以下介面:

選擇ms sql server,按提示填寫,connection string為:

jdbc:jtds:sqlserver://ip位址:埠(預設1433)/資料庫教程名;user=使用者名稱;password=密碼;charset=gb2312;domain=

下一步為mysql的資訊,connection string為:

jdbc:mysql://ip位址:埠(預設3306)/?user=使用者名稱&password=密碼&useserverprepstmts=false&

characterencoding=utf-8

之後一路按提示進行。到此介面選擇要忽略的表。

繼續next,如圖所示進入此介面,此處設定字元編碼,非常關鍵。

具體請看附件

檢視sql server 的資料庫編碼格式

select collationproperty('chinese_prc_stroke_ci_ai_ks_ws', 'codepage')

936 簡體中文gbk

950 正體中文big5

437 美國/加拿大英語

932 日文

949 韓文

866 俄文

65001 unicode uft-8

資料庫互導

1 sqlserver與access互導 方法一 用sql語句 匯出到access insert into openrowset microsoft.jet.oledb.4.0 x a.mdb admin a表 select from 資料庫名.b表 匯入access insert into b表 ...

sql access excel 資料互導

一 sql server 和access的資料匯入匯出 常規的資料匯入匯出 使用dts嚮導遷移你的access資料到sql server,你可以使用這些步驟 1在sql server企業管理器中的tools 工具 選單上,選擇data transformation 2services 資料轉換服務 ...

資料庫MySQL與xls檔案的互導

最近的乙個專案需要將xls表匯入到mysql資料庫中和將mysql資料表匯出到xls表中,在網上搜了很多資料,經過多次嘗試終於實現了功能,廢話不多說,在這貼上出 希望可以幫到需要的朋友。一 將.xls表匯入到mysql資料表中。1 import tmpfile files file tmp name...