I have structure table like this.
the problem is :
When i want to input data to "index" table. I got this error.
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (
test
.index
, CONSTRAINTindex_ibfk_5
FOREIGN KEY (b_FK
) REFERENCESb
(Id_B
))
When i remove the relation index and b. it's working fine.
i using same way for a_Fk, and c_Fk. but only b_FK which have problem.
Anyone know how to solve this? thx b4
FYI : i using java, net bean 6.8, mySql (Xampp V.3.2.0.1)