需要什么字段就选择导入怎么字段啊。还有环境描述完整啊。导入到MSSQL?
insert builderinfo(B_card,B_name,B_xb,B_jg,B_xl,B_gz,B_sfzh,B_gzdw,B_bz,b_lrsj,b_oper,b_csny)
SELECT 卡号,姓名,性别,籍贯,学历,工种,身份证号,工作单位,备注,getdate(),'管理员',
case when len(身份证号)=8 then 身份证号 when len(身份证号)=15 then '19'+substring(身份证号,7,6) when len(身份证号)=18 then substring(身份证号,7,8) end
from OpenDataSource('Microsoft.Jet.OLEDB.4.0','Data Source="D:\Documents and Settings\Administrator\桌面\导入标准格式.xls"
;Extended Properties="Excel 8.0;HDR=Yes;";Persist Security Info=False')...[安全卡培训表$]