Re: How do I create my table to avoid java.sql.SQLIntegrityConstraintViolationException: Duplicate entry '' for key 'PRIMARY'
Posted by: Filipe Silva
Date: January 07, 2019 06:08AM

Hi Karen,

Yes. This way when you delete a record from the `tutors` table, all corresponding records from `tutor_subject` also get deleted.

Mind that this was just an example. Your use case specifications will determine what you may really need.

Options: ReplyQuote

Sorry, only registered users may post in this forum.

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.