执行结果更新操作:
UPDATE user_info a
INNER JOIN user_info b ON b.id = a.id AND a.nick_name IS NULL
SET a.nick_name = b.real_name;
执行结果更新操作:
UPDATE user_info a
INNER JOIN user_info b ON b.id = a.id AND a.nick_name IS NULL
SET a.nick_name = b.real_name;
本文标题:mysql 如何在数据库中 A字段拷贝(复制)到B字段 并且判
本文链接:https://www.haomeiwen.com/subject/khyggctx.html
网友评论