Which Record is Referenced for a Duplicate Key Error for a Multiple-Column Index?; ERROR 1062 (23000): Duplicate Entry for Key (Doc ID 1408054.1)

Last updated on MAY 08, 2017

Applies to:

MySQL Server - Version 4.0 and later
Information in this document applies to any platform.

Goal

Learn about the error message for a duplicate key error on a multiple-column index and how to find the record that it refers to.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms