UPDATE BriefingProfile SET commentposted = commentposted - 1, contentcommentgeted = contentcommentgeted - 1 WHERE (commentposted > 0 AND briefinguser = OLD.commentator) OR (contentcommentgeted > 0 AND briefinguser = OLD.publisher);

mysql 合并这两句UPDATE BriefingProfile SET commentposted = commentposted - 1 WHERE commentposted 0 AND briefinguser = OLDcommentator; UPDATE BriefingProfile SET contentcommentgeted = contentcommentgeted

原文地址: https://www.cveoy.top/t/topic/bj3h 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录