Excel插入数据库

时间:2016-01-19 10:13:50

标签: sql excel

我以这种格式表达了一些值(超过200)

PlayerId,Amount1,Amount2,Amount3

那么如何在excel的某些sql表中插入这些值呢? 如何在Excel中编写INSERT公式,将该值插入我的sql表(名为TABLE1)

所以我希望有类似的东西 INSERT INTO TABLE1(PlayerId,Amount1,Amount2,Amount3) VALUES(here put values from excel)

1 个答案:

答案 0 :(得分:1)

你可以将它放在另一个CELL上,然后将它拖到所有行

=CONCATENATE("INSERT INTO TABLE1(PlayerId,Amount1,Amount2,Amount3)  values(",A1,",",B1,",",C1,",",D1,")")