Generating a database with the PowerDesigner modeling tool

Source: Internet
Author: User
Tags powerdesigner

1, using Powerdesignerp: Primary key F: Foreign key M: Nullable

2, when two tables establish a primary foreign key relationship, the primary foreign key name is the same. For example, A table a_id name Description ID (P)

B table b_id name Description ID (P)

To set the b_id in table B to the foreign key of table A, add a field named b_id in Table A.

3, after the modeling is completed, you can generate the database file, click database----Generate Database----Select the file save path, define the filename (default: t_carsell.sql)----determine

This file is powerdesigner based on drawing, connect the relationship between the various icons automatically generated SQL statements, put in the database execution is OK

4, if the database is installed, directly double-click Open, write the code in front of CREATE database to define the name you want

Go

Create a database

5, select the database code that was generated by the open file in the third step to run

6, Database creation succeeded

Generating a database with the PowerDesigner modeling tool

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.