将excel中是数据导入数据库
1.利用excel生成sql语句:
列如:
1).insert:
=CONCATENATE("insert into Company (ID,Name,Address,Tell,Brief,URL,Fax,Contact,TradeID,MP,Email)
values ('",A1,"','",B1,"','",C1,"','",D1,"','",E1,"','",F1,"','",G1,"','",H1,"','",I1,"','",J1,"','",K1,"');")
2).update
=CONCATENATE("update Company set PinYin='",S1,"' where ID='",A1,B1,"';")
2.将excel生成的sql语句复制在文本中。
3.将文本中的sql语句复制到数据中执行。