Excel生成sql脚本
2012-11-10 18:01
337 查看
使用concatenate:
CONCATENATE( text1, text2, ... text_n )
text1 to text_n are the strings that you wish to join together.
via:http://www.techonthenet.com/excel/formulas/concat.php
命令如下:
="insert into table_name(col1,col2) values('"&A2&"','"&B2&"');"
会生成一条sql语句,往下拉就会连续生成。
上面的&表示连接两个字符串,还可以用concatenate来做。
http://gubaojian.blog.163.com/blog/static/1661799082012213053694/
http://wangxiao5530.iteye.com/blog/1630604
枚举类型
excel
vlaue(x)将x提取成数字
或者相乘
=IF(A4*1>0,"a","b")
CONCATENATE( text1, text2, ... text_n )
text1 to text_n are the strings that you wish to join together.
via:http://www.techonthenet.com/excel/formulas/concat.php
命令如下:
="insert into table_name(col1,col2) values('"&A2&"','"&B2&"');"
会生成一条sql语句,往下拉就会连续生成。
上面的&表示连接两个字符串,还可以用concatenate来做。
http://gubaojian.blog.163.com/blog/static/1661799082012213053694/
http://wangxiao5530.iteye.com/blog/1630604
枚举类型
excel
vlaue(x)将x提取成数字
或者相乘
=IF(A4*1>0,"a","b")
相关文章推荐
- 利用Excel的vba脚本根据数据库表结构自动生成java的action,bean,dao,mode,service,xml,sql,jsp等
- 对Excel进行数据导入,函数拼写Sql脚本,动态生成一列单元格函数
- (运维日志)对Excel进行数据导入,函数拼写Sql脚本,动态生成一列单元格函数
- 使用Excel生成sql脚本
- Excel中用宏批量整理SQL脚本,生成ORACLE触发器语句
- Python读取excel指定列生成指定sql脚本
- Vs2010 建模项目 类图 生成代码和SQL Table脚本
- powerdesigner 导入SQL脚本生成模型
- PowerDesigner 15 生成SQL脚本
- 使用Excel批量生成SQL脚本(小技巧)
- EXCEL 批量生成SQL
- 把excel数据生成sql插入数据库语句
- c# 从sql 数据库生成 excel (转)
- MSSQL将表数据生成SQL脚本的存储过程
- 好用生成插入语句的SQL脚本
- SQL脚本生成的一些BUG
- 使用EXCEL编写生成SQL语句的模板
- sql导出数据并生成excel报告
- 用Ruby写自动生成Sql语句脚本遇到的问题
- excel生成sql语句