Select @ point = inserted. point, @ point_bank = inserted. point_bank, @ point_mno = inserted. point_mno, @ point_present = inserted. point_present, @ userid = inserted. userid, @ point_BabaoVoteYY = BabaoVoteYY. point from inserted left join BabaoVoteYY on inserted. userid collate Chinese_PRC_CI_AS = BabaoVoteYY. userid collate Chinese_PRC_CI_AS
If @ point_BabaoVoteYY is null
Set @ point_BabaoVoteYY = 0
Update UserInfo set allpoint = @ point + @ point_bank + @ point_mno + @ point_present + @ point_BabaoVoteYY where userid = @ userid
**************************************** **************************************** **************
Create trigger GetAllPointOnBabaoVoteYYChange
On BabaoVoteYY
For update, insert
As
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.