Skip to content
Advertisement

How to create trigger in informix?

I am trying to write a trigger like in the following simplified example:

This fails!

Only this works:

What am I doing wrong?

Advertisement

Answer

I think you should write a stored procedure with the IF – THEN logic and call that from this trigger. I think triggers support only simple SQL statements, not SPL statements

edit:

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement