时间:2021-07-01 10:21:17 帮助过:37人阅读
mysql通过关联修改表中两个字段的值
Sql代码
update A set a_field=
(select realname from B where A.extension=B.extension and B.extension <> '')
update A a inner join B b on a.extension=b.extension and a.extension <> ''
set a.extenrealname =b.realname
bitsCN.com