Home > Database > Mysql Tutorial > body text

Excel数据生成Sql语句_MySQL

WBOY
Release: 2016-06-01 13:26:06
Original
941 people have browsed it

bitsCN.com

选中想要生成的列,套用表格格式,选中表包含标题的选项确定,然后在最右边的一列第二行处,点击函数功能,选择CONCATENATE,在文本里输入想要的结构即可,=CONCATENATE("('",[@id],"','",[@name],"'),")

这样生成的之后的语句可以写为insert table1 (id,name) values ('1', "测试1"),('2', "测试2")...

bitsCN.com
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template