Hello there,
I am trying to create a trigger which executes an SQL function. For creating a trigger, it insists that the return type of the function being triggered has to be 'trigger' type. So I tried creating a SQL function with return type 'trigger' as:
create function display() returns trigger as 'select sum(totalhours) from log' language 'sql';
However I get an error telling- SQL functions cannot return type "trigger".
Does this mean I cannot trigger SQL statements or am I doing something wrong.
Please help me out with this.
Thanks
I am trying to create a trigger which executes an SQL function. For creating a trigger, it insists that the return type of the function being triggered has to be 'trigger' type. So I tried creating a SQL function with return type 'trigger' as:
create function display() returns trigger as 'select sum(totalhours) from log' language 'sql';
However I get an error telling- SQL functions cannot return type "trigger".
Does this mean I cannot trigger SQL statements or am I doing something wrong.
Please help me out with this.
Thanks