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

javascript - Js, document.getElementById("ID").innerHTML, error -

objective c - Is there a way in OCMockito to make stubs fail when an unknown method is called? -

jquery - jqGrid update specific column data with out refreshing the entire column? -