In this blog post, let’s learn about the error message “4169 Embedded delete statements are not allowed when using DECLARE … FOR UPDATE clause.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.
Error Message
4169 Embedded delete statements are not allowed when using DECLARE … FOR UPDATE clause.
Reason for the Error
You attempted to perform a DECLARE… FOR UPDATE clause that included an embedded DELETE statement.
Solution
Modify the statement and resubmit