How to generate a primary key and PowerDesigner--oracle version in the __oracle

Source: Internet
Author: User

How to create a new self-column in Oracle, in general, you need to build a sequence and pay the sequence to a column to rebuild the trigger.

First, open PD15, create a new PDM document, and create a new one, as shown in the figure:

The second step is to create a sequence. Create a new sequence by opening the list window of the series in "Model"-"Sequence". Then open the sequence of the property settings item "Physical Options", do the following settings, click OK, the sequence is established.

In the third step, you apply the sequence you just created to the table's primary key column, as shown in the figure: Click OK, it's not over yet, the key step is to rebuild the trigger.

Fourth step: Rebuild the trigger, under "Tools" as shown, click

Click OK, so that a trigger is automatically created to add the value of the sequence to the primary key.

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.