If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
referencing new_table as inserted;
begin
set "asd"=(select col1 from inserted);
end
error i am getting -
The definition of trigger "name" includes an invalid use of correlation name or transition table name "INSERTED". Reason code="4".. SQLCODE=-696, SQLSTATE=42898, DRIVER=3.63.108
Explanation
The trigger definition included an invalid use of name.
The value of reason-code identifies the roblem:
...
...
...
4
OLD TABLE name and NEW TABLE name are not allowed in a trigger
if the trigger is defined using a compound SQL (compiled) statement.
The statement cannot be processed.
...
Anyway,
why do you want to use "NEW TABLE" instead of "NEW"?
i am using ibm data studio.
when i use begin atomic instead of begin then i am getting this error
An unexpected token "set "asd" = (select "col1" from" was found following "ey" decimal(16,0)". Expected tokens may include: "
".. SQLCODE=-104, SQLSTATE=42601, DRIVER=3.63.108