sql sever 读取excel、csv文件

https://msdn.microsoft.com/en-us/library/ms188365.aspx

读取csv

select * from OPENQUERY(DGKF,’select * from [test.csv]’)—DGKF是路径

读取excel

select * from OpenRowSet(‘Microsoft.ACE.OLEDB.12.0’,

‘Excel 12.0;HDR=Yes;IMEX=1;Database=D:\test.xlsx’,

‘select * from [Sheet1$]’)

    原文作者:Eric_Zeng
    原文地址: https://www.jianshu.com/p/e1f81dd27aef
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞