mysql 匯入sqlserver資料庫

來源:互聯網
上載者:User

標籤:

#mysql 匯入sqlserver資料庫

EXEC master.dbo.sp_addlinkedserver @server = N‘sjkxb00‘, @srvproduct=N‘MySQL‘, @provider=N‘MSDASQL‘, @provstr=N‘DRIVER={MySQL ODBC 5.3 Unicode Driver}; SERVER=localhost; _DATABASE=tigerdb; USER=root; PASSWORD=123456; OPTION=3‘--資料匯入到 loreal 資料庫中--cast(null as bigint) as Idselect identity(bigint,1,1) as Id,* into loreal.dbo.Comments from openquery(sjkxb00, ‘SELECT * FROM loreal.t_comment_5927833634809674453‘)--資料匯入到 wmm 資料庫中select-- top 5 * identity(bigint,1,1) as Id,* into wmn.dbo.t_lable_groupwmmfrom openquery(sjkxb00, ‘SELECT * FROM wmn.t_lable_groupwmn‘)select-- top 5 * identity(bigint,1,1) as Id,* into wmn.dbo.w_user_info_wmm from openquery(sjkxb00, ‘SELECT * FROM wmn.w_user_info_wmn‘)--資料匯入到 bbqne 資料庫中--未插入select * from openquery(sjkxb00, ‘SELECT * FROM bbqne.t_dpt_203‘)select top 10 * from openquery(sjkxb00, ‘SELECT * FROM bbqne.t_lable_group203‘)--要把mysql中char()修改為varchar()select * from openquery(sjkxb00, ‘SELECT * FROM bbqne.w_user_info_203‘)

 

mysql 匯入sqlserver資料庫

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.