sqlserver璇诲彇excel鏂囦欢鏁版嵁鍒版暟鎹簱
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sqlserver璇诲彇excel鏂囦欢鏁版嵁鍒版暟鎹簱相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/pat' title='pat'>pat
spl art 鏁版嵁 detail open col nload data 姝ゆ枃杞浇鑷細https://blog.csdn.net/weixin_44024797/article/details/109988217
sqlserver璇诲彇excel鏂囦欢鏁版嵁鍒版暟鎹簱
1.sqlserver 璇诲彇 excel涓殑鏁版嵁
SELECT * FROM OpenDataSource( 鈥楳icrosoft.Jet.OLEDB.4.0鈥?
鈥楧ata Source=鈥渃:/book1.xls鈥?User ID=Admin;Password=;Extended properties=Excel 5.0鈥?鈥Sheet1$]
鎶ラ敊淇℃伅锛氭棤娉曞垱寤洪摼鎺ユ湇鍔″櫒鈥?null)鈥濈殑 OLE DB 璁块棶鎺ュ彛鈥淢icrosoft.Jet.OLEDB.4.0鈥濈殑
2.涓嬭浇绋嬪簭:
https://www.microsoft.com/zh-cn/download/details.aspx?id=13255
3.淇敼锛宔xcel鏂囦欢瑕佸拰鏁版嵁搴撳湪鍚屼竴涓湇鍔″櫒
INSERT INTO Users(Uid,UName,UPwd)
SELECT Uid,UName,UPwd FROM OpenDataSource( 鈥楳icrosoft.ACE.OLEDB.12.0鈥?
鈥楧ata Source=鈥渃:/book1.xls鈥?User ID=Admin;Password=;Extended properties=Excel 5.0鈥?鈥Sheet1$]
4.鏌ヨ鏁版嵁锛屽畬鎴?br> select * from Users
spark streaming璇诲彇kakfka鏁版嵁鎵嬪姩缁存姢offset
Python璇诲彇mysql鏁版嵁锛岃浆涓篋ataFrame鏍煎紡骞舵牴鎹師TABLE涓殑COLUMNS鎸囧畾columns锛宨ndex