Powerdesigner integrity constraints (cascade deletion)

Source: Internet
Author: User
Tags powerdesigner

Powerdesigner integrity constraints:
Restriction: modification or deletion is not allowed. If the primary key of the primary table is modified or deleted, if the Sub-table contains a sub-record, an error message is displayed. This is the default integrity settings.

Set NULL: if the foreign key column can be empty, if you modify or delete the primary key of the primary table, set the foreign key column referenced in the subtable to null ).

Set Default: if the default value is specified, When you modify or delete the primary key of the primary table, set the foreign key referenced in the subtable to the default value ).

Cascade: when the primary key of the master table is changed to a new value, the foreign key value of the sub-table is modified accordingly. Or when the primary key record of the master table is deleted, delete the records of Foreign keys in the sub-table.

When the foreign key cascade is deleted, the operation on the primary table is associated with the child table, but the operation on the child table is not associated with the primary table.

 

The meanings of the parameters are as follows:
None: the parent table is modified, and the child table is not affected.
Restrict: Modify the parent table. If the child table exists, an error occurs.
Cascade: Modify the parent table. If the child table exists, modify the table accordingly.
Set NULL: Modify the parent table. If the child table exists, it is set to null.
Set Default: Modify the parent table. If the child table exists, set the default value accordingly.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.