co_mumu
作者co_mumu·2012-04-10 22:13
BI实施工程师·智和创

sqlserver 直接查询excel

字数 508阅读 1592评论 0赞 1
sqlserver 直接查询excel

select identity(int, 1, 1) rownum,*
  into #temp
  from OpenRowSet(
'Microsoft.Jet.OLEDB.4.0',
                 
'Excel 8.0;IMEX=1;Database=D:work_数创客户网球设计餐娱物资清单杯子.xls',
                 
'select  * from [Sheet1$] ');

select F2, f3, f4, f5 from #temp where rownum >
1;
drop table #temp

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

1

添加新评论0 条评论

Ctrl+Enter 发表

作者其他文章

相关问题

相关资料

X社区推广