示例: 需要将A列的数据修改为B的值,但数据保存再excl中,手动书写sql比较费时
- 手动写sql 为:
update test set name = 'b' where name = 'a' ;
- 现在我们需要利用excl 快速生成 mysql语句
= " update test set name = '"&B1& "' where name = '"&A1& "' ; "
- 注意 excl 中的 双引号和单引号的使用, &B1& 选中B列第一行数据。
示例: 需要将A列的数据修改为B的值,但数据保存再excl中,手动书写sql比较费时
update test set name = 'b' where name = 'a' ;
= " update test set name = '"&B1& "' where name = '"&A1& "' ; "
写SQL小技巧
SQL查询语句快速入门《学习》
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M