首页 期权学习期权知识正文

mysql数据sql tips

xiaojiucai 期权知识 2020-08-18 543 0

当从B表数据更新到A表时:

update A inner join B on A.aid=B.aid 

set A.user_name=B.username,A.phone=B.tel

where A.aid=A.aid

当从B表数据插入到A表时:

insert A(`aid`,`typeid`,`channel) select `aid`,`typeid`,`channel` from B where aid>5960

原文链接:https://www.qiquanji.com/post/7906.html

本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。

版权声明

本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。