创建临时表
UPDATE sys_user,
(
SELECT
min(id) AS id
FROM
sys_user
WHERE
invitation_expert_user_id = ‘8a2ebe035de8881e015e134139442b93‘
AND type = 4
AND del_flag = 0
GROUP BY
id
) AS tmp
SET sys_user.invitation_agent_user_id = ‘014282c8c3de4d80ab2c4f72d384d6c2‘,
sys_user.remarks = ‘高洪蛟老师做代理之前作为医生邀请的医生‘
WHERE
sys_user.id = tmp.id
原文地址:https://www.cnblogs.com/shenggege5240/p/8861864.html
时间: 2024-11-10 13:49:30