i got two foreign keys in a table, with a primary key.
Primary_key Name Foreignkey1 Foreignkey2
1 test1 2 1
2 test2 2 1 <--- how do i prevent this from entering
3 test3 2 2
either in java or mysql, i am displaying the data in a jtable
add
UNIQUEconstraint