insert into dbo.BW_BasicData_PlantCode (code,Description) select [PlantNo],[PlantDesc] from
OPENROWSET('MICROSOFT.JET.OLEDB.4.0','Excel 8.0;IMEX=1;HDR=YES;DATABASE=D:\物料基本数据维护.xls','select * from [工厂$]')
//“物料基本数据维护”为Excel文档名,“工厂”为一个Sheet
转载于:https://www.cnblogs.com/heartinsky/archive/2008/03/05/1092266.html