MySQL Forums
Forum List  »  Newbie

Re: Sakila DB Question
Posted by: Peter Brawley
Date: July 01, 2016 04:17PM

> if I update the actor table or the film table
> it would cascade down to the table which bridges them both?

You have misunderstood foreign keys. They do not create new data.

If you update a key value in film or actor, CASCADE forces propagation of your update to those key values which exist in tables with such a declared FK.

Your film_actor table does not have a row with matching key values until you insert it in that table.

Options: ReplyQuote


Subject
Written By
Posted
June 30, 2016 04:50PM
June 30, 2016 06:17PM
June 30, 2016 06:40PM
June 30, 2016 10:21PM
July 01, 2016 02:19PM
Re: Sakila DB Question
July 01, 2016 04:17PM


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.