跪求高手指点。
3 个解决方案
#1
一条SQL语句就可以导入
#2
Dim StrXls1 As String = "insert into 科目表 (科目代码,科目名称,年份)
select 科目代码,科目名称,年份 from openrowset('microsoft.jet.oledb.4.0','excel 8.0;hdr=yes;database=c:\111.xls;','select * from [Sheet1$]') "
select 科目代码,科目名称,年份 from openrowset('microsoft.jet.oledb.4.0','excel 8.0;hdr=yes;database=c:\111.xls;','select * from [Sheet1$]') "
#3
tks
#1
一条SQL语句就可以导入
#2
Dim StrXls1 As String = "insert into 科目表 (科目代码,科目名称,年份)
select 科目代码,科目名称,年份 from openrowset('microsoft.jet.oledb.4.0','excel 8.0;hdr=yes;database=c:\111.xls;','select * from [Sheet1$]') "
select 科目代码,科目名称,年份 from openrowset('microsoft.jet.oledb.4.0','excel 8.0;hdr=yes;database=c:\111.xls;','select * from [Sheet1$]') "
#3
tks