In this blog post, let’s learn about the error message “20221 A syntax error was found near ‘string’, near character position int.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.
Error Message
20221 A syntax error was found near ‘string’, near character position int.
Reason for the Error
You specified the wrong syntax.
Solution
Correct the syntax and resubmit