![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » ElevateDB Technical Support » Product Manuals » ElevateDB Version 2 SQL Manual » SQL/PSM Statements » RETRY |
RETRY
-- This error trigger will handle a constraint -- error, update the value so that the constraint error -- doesn't happen. However, if the value has already -- been changed, then it re-raises the constraint error CREATE TRIGGER "ErrorTest" ERROR INSERT ON "customer" BEGIN IF ERRORCODE()=1004 THEN IF NEWROW.CustNo <> 100 THEN SET NEWROW.CustNo=100; RETRY; ELSE RAISE; END IF; END IF; END
Deviation | Details |
Extension | This SQL statement is an ElevateDB extension. |
This web page was last updated on Friday, January 31, 2025 at 08:42 AM | Privacy Policy![]() © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |