![]() | Products |
| Home » Technical Support » ElevateDB Technical Support » Product Manuals » ElevateDB Version 2 SQL Manual » String Functions » CURRENT_COMPUTER |
CURRENT_COMPUTER()
VARCHAR
-- This trigger logs information about
-- inserts, updates, and deletes,
-- including the computer the executed the
-- operation
CREATE TRIGGER "LogValues" AFTER ALL ON "customer"
BEGIN
IF OPERATION() IN ('Insert','Update') THEN
EXECUTE IMMEDIATE 'INSERT INTO AuditLog (Operation, Computer, Value)
VALUES (?,?,?)' USING OPERATION(), CURRENT_COMPUTER(), NEWROW.MyColumn;
ELSE IF OPERATION()='Delete' THEN
EXECUTE IMMEDIATE 'INSERT INTO AuditLog (Operation, Computer, Value)
VALUES (?,?,?)' USING OPERATION(), CURRENT_COMPUTER(), OLDROW.MyColumn;
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 ? |

