标签:trigger new each select rom class account terminal 更新
/* 商户资料更新时更新终端 */
DELIMITER |
CREATE TRIGGER
bankChange
AFTER UPDATE
ON david_bank
FOR EACH ROW
BEGIN
/*
declare termC int;
set termC = (select count(*) as nums from david_terminal where mer_id=new.mer_id);
if termC<=1 then
update david_terminal set
main_tel = new.main_tel,
sale_type_id = new.sale_type_id
where mer_id=new.mer_id;
end if;
*/
update david_account set
bank_name = new.name
where bank_id=new.cut_no;
END
|
DELIMITER ;
标签:trigger new each select rom class account terminal 更新
原文地址:http://www.cnblogs.com/qq917937712/p/7649622.html