mysql 合并这两句UPDATE BriefingProfile SET commentposted = commentposted - 1 WHERE commentposted 0 AND briefinguser = OLDcommentator; UPDATE BriefingProfile SET contentcommentgeted = contentcommentgeted
UPDATE BriefingProfile SET commentposted = commentposted - 1, contentcommentgeted = contentcommentgeted - 1 WHERE (commentposted > 0 AND briefinguser = OLD.commentator) OR (contentcommentgeted > 0 AND briefinguser = OLD.publisher);
原文地址: https://www.cveoy.top/t/topic/bj3h 著作权归作者所有。请勿转载和采集!