CREATE
/*!50017 DEFINER = 'root'@'localhost' */
TRIGGER `tri_temp_no` BEFORE INSERT ON `temp`
FOR EACH ROW BEGIN
SET new.roule_no =CONCAT('RS',LPAD(@@IDENTITY+1,9,0));
END;
$$
DELIMITER ;
2.表与表相关触发,如资金流水触发总账户表,审核流程表等
DELIMITER ;
2.表与表相关触发,如资金流水触发总账户表,审核流程表等