PowerDesigner Mysql primary Key auto increment, initial value, character set

Source: Internet
Author: User
Tags powerdesigner

Self-increment

Double-click on the key you want to set as the self-increment (like your id), pop Up a Column Properties dialog box, have a identify selection box in the lower right corner, and check it OK. Check out the preview and you'll be able to see auto_increment.

Starting value

The default self-increment field starts at 1, and if you need to set an initial value, switch to "physical Options" with the following interface:

Character sets and engines

Original address: http://jooben.blog.51cto.com/253727/309467

General modeling may be used: PowerDesigner
But, on the table, I didn't find it:
DEFAULT CHARACTER SET, COLLATE
Two of options. So, think of a way, click: Toolbar-"database-" Edit current DBMS
Then, select: Mysql50::script\objects\table\options
Add at the end of the options:
ENGINE =%s:list = BDB | HEAP | ISAM | InnoDB | MERGE | Mrg_myisam | MYISAM, default = MYISAM
DEFAULT CHARACTER SET =%s:list = UTF8 | GBK, default = UTF8
COLLATE =%s:list = Utf8_bin | Utf8_general_ci | Gbk_bin | Gbk_chinese_ci, default = Utf8_bin
First: Storage engine
Second: Character set
Third: With bin is case-sensitive, CI does not differentiate
Click OK to save, go back to the workspace, double click on a table, in:
Physicial options, you can see the option you just added so that you can do it your way.

PowerDesigner Mysql primary Key auto increment, initial value, character set

Related Article

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.