【问题标题】:Insert data from Excel sheet with multiple tabs into SQL Server into multiple tables将具有多个选项卡的 Excel 工作表中的数据插入 SQL Server 到多个表中
【发布时间】:2020-06-02 21:48:39
【问题描述】:

假设 SQL Server 中有 5 个表的 5 个工作表,我如何编写一个代码来将这 5 个工作表中的批量数据插入到 SQL Server 中的 5 个表中。

【问题讨论】:

标签: sql-server excel bulkinsert bulk-load


【解决方案1】:

您可以通过 SSMS 导入功能或运行查询来做到这一点。问题已经在这里回答了:

How to import an Excel file into SQL Server?

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-02-21
    相关资源
    最近更新 更多