根据视频表更新公司表下的视频数
update company set video_number=(select count(id) from video_data where status=10 and company_id=company.id) where company.status=10;
原文地址:https://www.cnblogs.com/grimm/p/8371279.html
时间: 2024-10-31 11:13:43
根据视频表更新公司表下的视频数
update company set video_number=(select count(id) from video_data where status=10 and company_id=company.id) where company.status=10;
原文地址:https://www.cnblogs.com/grimm/p/8371279.html