error:1235 mysql |
This error:1235 occurs because of executing trigger update in the same table of trigger. For example, as in this code below :
DELIMITER $$ DROP TRIGGER IF EXISTS bfr_upd_billing$$ CREATE TRIGGER bfr_upd_billing BEFORE UPDATE ON billing FOR EACH ROW BEGIN update billing set flg_sync = '0' where billing_no = NEW.BILLING_NO; END$$ DELIMITER ;
To resolve this error, we need to fix this code like below :
DELIMITER $$ DROP TRIGGER IF EXISTS bfr_upd_billing$$ CREATE TRIGGER bfr_upd_billing BEFORE UPDATE ON billing FOR EACH ROW BEGIN SET NEW.FLG_SYNC='0'; END$$ DELIMITER ;
No comments:
Post a Comment