I have a form in my netbeans javadb app to insert values into a table. I want to warn the user if he inserts a duplicated value in form.
How can I do it from code?
I use an "insert into" statement to put data in db.
Printable View
I have a form in my netbeans javadb app to insert values into a table. I want to warn the user if he inserts a duplicated value in form.
How can I do it from code?
I use an "insert into" statement to put data in db.
If the user is not supposed to enter duplicate values then make that column UNIQUE.