mysql - Need a trigger to prevent Unique input update from a table window -


i have frontend application windows table insert/update/delete rows in database table. have 1 unique column , i'm looking trigger prevent , give meaninful error user when trying insert duplicate.

create unique constraint in column. if user tries enter value present in table mysql error 1062 "duplicate entry....", @ time show user "value entered exist, please enter different value"


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -