当前位置:网站首页>Excel拼接数据库语句
Excel拼接数据库语句
2022-07-29 03:29:00 【哆啦A梦的口袋呀】
excel中有5列数据,分别是序号,编号,姓名,昵称,邮箱
想要拼接成数据库语句如下:
update users set `uid`=2,`name`="张三",`r_name`="李四",`email`="[email protected]" where id=1;
update语句在旁边输入函数如下,即可自动生成。
=CONCATENATE("update users set `uid`="&B2&",`name`="""&C2&""",`r_name`="""&D2&""",`email`="""&E2&""" where id="&A2&";")
其他语句同理,如insert语句:
=CONCATENATE("insert into users(`uid`,`name`,`r_name`,`email`) values("""&B3&""","""&C3&""","""&D3&""","""&E3&""");")
边栏推荐
- RTP send and receive h265
- Implement Lmax disruptor queue from scratch (VI) analysis of the principle of disruptor solving pseudo sharing and consumers' elegant stopping
- 1.5 nn. Module neural network (III)
- Design of smoke temperature, humidity and formaldehyde monitoring based on single chip microcomputer
- Simple code implementation of K-means clustering
- makefile详解
- Regular expression bypasses WAF
- Swing V2: towards a larger model with larger capacity and higher resolution
- ShardingSphere之水平分表实战(三)
- Singleton and invariant modes of concurrent mode
猜你喜欢

Redis之sentinel哨兵集群怎么部署

Summary of basic knowledge points of C language

Mathematical modeling -- analytic hierarchy process model

Idea configuration web container and war packaging

KNN method predicts pregnancy, KNN principle simple code

Sleuth+zipkin to track distributed service links

ShardingSphere之水平分表实战(三)

Producer consumer model of concurrent model

最新二开版漫画小说听书三合一完整源码/整合免签接口/搭建教程/带采集接口

Rongyun IM & RTC capabilities on new sites
随机推荐
Notes on letter symbol marking of papers
力扣刷题之分数加减运算(每日一题7/27)
军品研制过程-转阶段
Pp-yoloe details
Tencent cloud logs in with PEM
3D advanced renderer: artlandis studio 2021.2 Chinese version
How to deploy sentinel cluster of redis
一种简单通用的获取函数栈空间大小的方法
Violence recursion to dynamic programming 01 (robot movement)
mysql的timestamp存在的时区问题怎么解决
Tonight at 7:30 | is the AI world in the eyes of Lianjie, Jiangmen, Baidu and country garden venture capital continue to be advanced or return to the essence of business
Exness: dove resolution helped gold rebound, and the focus turned to U.S. GDP
During the year, the first "three consecutive falls" of No. 95 gasoline returned to the "8 Yuan era"“
Simple understanding of Poe and UPS Technology
Practical application cases of digital Twins - smart energy
Rdkit II: use rdkit screening to screen 2D pharmacophores of chemical small molecules
How to judge stun protocol
Implement Lmax disruptor queue from scratch (VI) analysis of the principle of disruptor solving pseudo sharing and consumers' elegant stopping
Learn exkmp again (exkmp template)
MYCAT read / write separation configuration