MYSQL 将excel里面的数据直接生成sql语句
如何使用EXCEL生成SQL语句?
将光标放到新的列上里面,然后在公式栏里面输入如下公式:
="insert into t values('"&A1&"','"&B1&"','"&C1&"','"&D1&"')"
效果图:
然后拖动公式往下,就可以将所有的数据生成SQL语句了。
然后全部复制出,粘贴到执行SQL语的编辑器里一下就完成了。
insert into t values('C108','XXX','XXX','XXX') insert into t values('C108','XXX','XXX','XXX') insert into t values('C108','XXX','XXX','XXX') insert into t values('C108','XXX','XXX','XXX') insert into t values('C108','XXX','XXX','XXX') insert into t values('C108','XXX','XXX','XXX') insert into t values('C108','XXX','XXX','XXX') insert into t values('C108','XXX','XXX','XXX')
相关推荐
CoderToy 2020-11-16
emmm00 2020-11-17
王艺强 2020-11-17
ribavnu 2020-11-16
bianruifeng 2020-11-16
wangshuangbao 2020-11-13
苏康申 2020-11-13
vivenwan 2020-11-13
moyekongling 2020-11-13
云中舞步 2020-11-12
要啥自行车一把梭 2020-11-12
aydh 2020-11-12
kuwoyinlehe 2020-11-12
minerk 2020-11-12
vitasfly 2020-11-12
jazywoo在路上 2020-11-11
敏敏张 2020-11-11
世樹 2020-11-11