In this blog post, let’s learn about the error message “11013 A DELETE trigger cannot reference NEW values.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.
Error Message
11013 A DELETE trigger cannot reference NEW values.
Reason for the Error
You attempted to create a DELETE trigger specifying a NEW transition variable.
Solution
You cannot use the NEW transition variable with a DELETE trigger because there is no new image for a row to be deleted