Login ProductsSalesSupportDownloadsAbout |
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 Thursday, November 16, 2023 at 10:39 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |