当前位置:网站首页>使用excel快速生成sql语句
使用excel快速生成sql语句
2022-06-30 16:57:00 【折扇掩笑颜】
数据表:
| id | name | age | sex | class |
|---|---|---|---|---|
| 1 | 张三 | 18 | 1 | 2 |
| 2 | 李四 | 19 | 2 | 3 |
SQL:
INSERT INTO student (name,age,sex,class) values('张三',18,2,4);
批量生成SQL
="INSERT INTO student (name,age,sex,class) VALUES('"&B2&"','"&C2&"','"&D2&"','"&E2&"');"| 1 | 张三 | 18 | 1 | 1 | INSERT INTO student (name,age,sex,class) VALUES('张三','18','1','1'); |
| 2 | 李四 | 19 | 1 | 1 | INSERT INTO student (name,age,sex,class) VALUES('李四','19','1','1'); |
| 3 | 王五 | 20 | 1 | 2 | INSERT INTO student (name,age,sex,class) VALUES('王五','20','1','2'); |
| 4 | 赵六 | 21 | 2 | 3 | INSERT INTO student (name,age,sex,class) VALUES('赵六','21','2','3'); |
边栏推荐
- Advanced embedded application of uni app [day14]
- Optimization of interface display for general kernel upgrade of mobo video management system v3.5.0
- . Net ORM framework hisql practice - Chapter 1 - integrating hisql
- 基于SSH的客户关系CRM管理系统
- VS code 树视图 treeView
- Tensorflow2 ten must know for deep learning
- K-line diagram must be read for quick start
- Zero foundation can also be an apple blockbuster! This free tool can help you render, make special effects and show silky slides
- New research of HKUST & MsrA: about image to image conversion, finishing is all you need
- Lenovo's "dual platform" operation and maintenance solution helps to comprehensively improve the intelligent management ability of the intelligent medical industry
猜你喜欢

基于SSH的客户关系CRM管理系统

LeetCode之合并二叉树

autocad中文语言锁定只读警报怎么解决?

Importing alicloud ECS locally to solve deployment problems

Vue3 reactive database

ASP. Net authentication code login
![[PROJECT] Xiaomao school (IX)](/img/01/f7fc609e7a156d6e60ce6482ba2ac1.jpg)
[PROJECT] Xiaomao school (IX)

Small tools (3) integration knife4j3.0.3 interface document

How to write a technical proposal

Flutter custom component
随机推荐
Redis (I) - data type
VS code 树视图 treeView
【机器学习】K-means聚类分析
Design of online shopping mall based on SSH
ASP. Net generate verification code
Elastic 8.0: opening a new era of speed, scale, relevance and simplicity
漏洞复现----37、Apache Unomi 远程代码执行漏洞 (CVE-2020-13942)
NFT挖矿游GameFi链游系统开发搭建
Redis (IX) - enterprise level solution (II)
Servlet operation principle_ API details_ Advanced path of request response construction (servlet_2)
Ardunio esp32 obtains real-time temperature and humidity in mqtt protocol (DH11)
[sword finger offer] 53 - I. find the number I in the sorted array
漏洞复现----35、uWSGI PHP 目录遍历漏洞 (CVE-2018-7490)
Deep understanding of JVM (I) - memory structure (I)
DeFi借贷协议机制对比:Euler、Compound、Aave和Rari Capital
ASP. Net password encryption and password login
Conception d'un centre commercial en ligne basé sur SSH
Dropout: immediate deactivation
后渗透之文件系统+上传下载文件
LeetCode之合并二叉树