get keyname for constraint error in PHP/MySql?

libeyog

New Member
If I try to do an insert that fails because of a key constraint error, is there a way I can get the name of the key without doing string parsing of the error text? I already know the error code is 1062; I want to find out which key constraint failed :)
 
Back
Top