UPDATE yx_user t
INNER JOIN ( SELECT real_name, uid FROM yx_user ) t2 ON t2.uid = t.spread_uid
SET t.spread_username = t2.real_name
WHERE
t.uid = '39'
mysql 查询修改一条sql
最新推荐文章于 2024-09-30 21:32:52 发布
UPDATE yx_user t
INNER JOIN ( SELECT real_name, uid FROM yx_user ) t2 ON t2.uid = t.spread_uid
SET t.spread_username = t2.real_name
WHERE
t.uid = '39'