MySQL Forums
Forum List  »  Connector/JDBC and Java

foreign key issue-one to many
Posted by: Jeevan Reddy Mankari
Date: June 19, 2013 03:55AM

Hi,

There is an issue related to foreign key. the error is as follows:

[JDBCExceptionReporter] SQL Error: 1452, SQLState: 23000
[JDBCExceptionReporter] Cannot add or update a child row: a foreign key constraint fails (`tms`.`groups`, CONSTRAINT `FK_groups` FOREIGN KEY (`GroupName`) REFERENCES `users` (`groupname`) ON DELETE CASCADE ON UPDATE CASCADE)

Thanks,
-Jeevan

Options: ReplyQuote


Subject
Written By
Posted
foreign key issue-one to many
June 19, 2013 03:55AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.