insert into student
select *
from OPENROWSET('MICROSOFT.JET.OLEDB.4.0','Excel 5.0;HDR=YES;DATABASE=c:\student.xls',sheet1$)

注意:c:\student.xls的第一行为要导入sql表student的字段名

相关文章:

  • 2021-05-16
  • 2022-01-15
  • 2022-01-04
  • 2022-12-23
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-13
  • 2022-01-29
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案