MySQL: Get column name and value of duplicate key (structured)?

KMatle

Expert
Licensed User
Longtime User
Hi guys,

with
B4X:
mysqli_error($con)

you can get a SQL error message like this

B4X:
Duplicate entry '[email protected]' for key 'email'}

I did not find a function to get the columnname and value involved and I don't like to parse strings which can change some day. Any ideas? (maybe I was to blind to find anything on the www)
 
Top