In this blog post, let’s learn about the error message “3188 A NOT DROPPABLE primary key constraint must be defined when STORE BY primary key is specified.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.
Error Message
3188 A NOT DROPPABLE primary key constraint must be defined when STORE BY primary key is specified.
Reason for the Error
You specified a STORE BY primary key but did not define a NOT DROPPABLE primary key.
Solution
Correct the syntax and resubmit