美文网首页
2022-03-09

2022-03-09

作者: nbicelove | 来源:发表于2022-03-09 17:43 被阅读0次

    update user a set a.posts=(select b.counts from (select authorid,count(*) counts from post group by authorid) b where a.uid=b.authorid)

    UPDATE project_info pi,
    (SELECT
    phone, COUNT(*) count
    FROM
    project_info
    GROUP BY phone) re
    SET
    pi.count = re.count
    WHERE
    pi.phone = re.phone

    相关文章

      网友评论

          本文标题:2022-03-09

          本文链接:https://www.haomeiwen.com/subject/uvatdrtx.html