EXCEL转数据到SQL(已有表结构)

来源:互联网 发布:java程序编译成class 编辑:程序博客网 时间:2024/05/16 06:43

insert into Country123 ([Country_Id], [Region_ID], [Country_EN_Name], [Country], [Country_ALL_ID], [Country_Order_Id]) select [Country_Id], [Region_ID], [Country_EN_Name], [Country], [Country_ALL_ID], [Country_Order_Id] FROM openrowset( 'Microsoft.Jet.OLEDB.4.0', 'EXCEL 5.0;HDR=YES;IMEX=1; DATABASE=C:/Documents and Settings/Administrator.SM-8K7POQCBNFWO/My Documents/Google Talk Received Files/12-24.XLS',Country)

原创粉丝点击