POST_EVENT
Examples
Notifying the listening applications about inserting a record into the SALES
table:
CREATE TRIGGER POST_NEW_ORDER FOR SALES
ACTIVE AFTER INSERT POSITION 0
AS
BEGIN
POST_EVENT 'new_order';
END
POST_EVENT
ExamplesNotifying the listening applications about inserting a record into the SALES
table:
CREATE TRIGGER POST_NEW_ORDER FOR SALES
ACTIVE AFTER INSERT POSITION 0
AS
BEGIN
POST_EVENT 'new_order';
END
RETURN
Returns a value from a stored function
RETURN value;
Argument | Description |
---|---|
value |
Expression with the value to return;Can be any expression type-compatible with the return type of the function |
The RETURN
statement ends the execution of a function and returns the value of the expression value.
RETURN
can only be used in PSQL functions (stored functions and local sub-functions).