27,579
社区成员
发帖
与我相关
我的任务
分享
sp_configure 'show advanced options',1
reconfigure
go
sp_configure 'xp_cmdshell',1
reconfigure
GO
sp_configure 'Ad Hoc Distributed Queries',1
reconfigure
GO
--强制转换
select
CAST([存款] AS FLOAT)
,CAST([取款] AS FLOAT)
--into #tmp
from OpenDataSource('Microsoft.ACE.OLEDB.12.0',
'Excel 12.0;HDR=Yes;IMEX=1;Database=D:\test.xlsx')...[Sheet1$]