onUpdate in MySQL means?

Posted by ajsie on Stack Overflow See other posts from Stack Overflow or by ajsie
Published on 2010-04-18T14:25:23Z Indexed on 2010/04/18 14:33 UTC
Read the original article Hit count: 155

Filed under:

i know that if you create a foreign key on a field (parent_id) in a child table that refer to a parent table's primary key (id), then if this parent table is deleted the child class will be deleted as well if you set onDelete to cascade when creating the foreign key in the child class.

but what happens if i set it to onUpdate = cascade?

© Stack Overflow or respective owner

Related posts about mysql