任何帮助表示赞赏。我们需要更新 ibf_posts.author_id。我已经尝试过了,但它似乎不起作用。没有错误,但运行数小时后查询尚未完成。2.9g 数据库。ibf_posts 为 1.9g
UPDATE ibf_posts SET author_id = (SELECT member_id FROM ibf_members
WHERE ibf_members.members_display_name = ibf_posts.author_name)
表:ibf_posts、ibf_members
ibf_posts.author_name = ibf_members.members_display_name
ibf_posts.author_id = ibf_members.member_id
[slinky = slinky]
[4814 = 4814]
但我们有:
[slinky = slinky]
[0 = 4814]