![]() | Products |
| Home » Technical Support » ElevateDB Technical Support » Product Manuals » ElevateDB Version 2 SQL Manual » SQL/PSM Functions » OPERATION |
OPERATION()
VARCHAR Return values are case-sensitive and can be one of the following: Insert Update Delete
-- This trigger checks to see if the
-- State column is filled in, and if not fills
-- in the column with a default value.
CREATE TRIGGER "SetDefaultValues" BEFORE ALL ON "customer"
WHEN OPERATION() IN ('Insert','Update')
BEGIN
IF NEWROW.State IS NULL OR TRIM(BOTH ' ' FROM NEWROW.State)='' THEN
SET NEWROW.State='NY';
END IF;
END| Deviation | Details |
| Extension | This function is an ElevateDB extension. |
This web page was last updated on Tuesday, September 16, 2025 at 04:56 PM | Privacy Policy © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? |

