📜  将excel导入sql代码示例

📅  最后修改于: 2022-03-11 15:04:51.281000             🧑  作者: Mango

代码示例1
You can also use OPENROWSET to import excel file in sql server.

SELECT * INTO Your_Table FROM OPENROWSET('Microsoft.ACE.OLEDB.12.0',
                        'Excel 12.0;Database=C:\temp\MySpreadsheet.xlsx',
                        'SELECT * FROM [Data$]')