HPE NonStop SQL/MX Error – 1223 Optimizer hints are not allowed in statement-name statement.

In this blog post, let’s learn about the error message “1223 Optimizer hints are not allowed in statement-name statement.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.

Error Message

1223 Optimizer hints are not allowed in statement-name statement.

Reason for the Error

You specified optimizer hints in the text of a statement.

Solution

Remove the optimizer hints and resubmit the statement