当前位置:网站首页>In mysql, update and select are used together
In mysql, update and select are used together
2022-07-25 09:21:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm the king of the whole stack .
In need update Set parameters from other tables select The result is , Need to put update and select Use a combination of , Different databases support different forms , stay mysql Below :
update A inner join(select id,name from B) c on A.id = c.id set A.name = c.name;according to AB Two watches id Same as condition , hold A Tabular name It is amended as follows B Of sql The statement is as shown above
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/111439.html Link to the original text :https://javaforall.cn
边栏推荐
猜你喜欢

activemq--可持久化机制之JDBC代码

mysql中的数据结果排名

Silicon Valley classroom lesson 12 - official account on demand course and live broadcast management module

This ten-year content industry infrastructure company is actually an invisible Web3 pioneer

Labview--- signal generator

JMeter test plan cannot be saved solution

Sort out Huawei ap-3010dn_ V2 configuration create WiFi

Silicon Valley class lesson 11 - official account news and wechat authorization

Shell script

Wechat applet obtains the data of ---- onenet and controls the on-board LED of STM32
随机推荐
How does Youxuan database encrypt data?
Silicon Valley class lesson 11 - official account news and wechat authorization
学习周刊-总第 63 期-一款开源的本地代码片段管理工具
activemq--死信队列
Algorithm --- flip digit (kotlin)
ActiveMQ -- JDBC code of persistent mechanism
JDBC quick start
Sort out Huawei ap-3010dn_ V2 configuration create WiFi
activemq--延迟投递和定时投递
JMeter test plan cannot be saved solution
Comments on specific applications of camera
activemq--可持久化机制
Do you know these methods of MySQL database optimization?
This ten-year content industry infrastructure company is actually an invisible Web3 pioneer
Opencv realizes simple face tracking
[machine learning] Finally, the important steps of machine learning modeling have been clarified
log4j2基础配置
Learn about spark project on Nebula graph
Query efficiency increased by 10 times! Three optimization schemes to help you solve the deep paging problem of MySQL
Ctfhub skill tree Web