In this blog post, let’s learn about the error message “1041 The primary key has already been defined.” when working with HPE NonStop SQL/MX, the reason for the error and the solution to fix this error message.
Error Message
1041 The primary key has already been defined.
Reason for the Error
You attempted to add a primary key to a table that already contains a primary key.
Solution
None