In this blog post, let’s learn about the error message “6031 Duplicate optimizer hint opt-hint was specified in the statement.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.
Error Message
6031 Duplicate optimizer hint opt-hint was specified in the statement.
Reason for the Error
You specified one or more optimizer hints more than once in the SQL statement.
Solution
Remove the duplicate hints and resubmit the statement