To create a PDM with support for features specific to the MySQL DBMS family, select the appropriate version in the DBMS field of the New Model dialog. To view these extensions to the PowerDesigner metamodel in the Resource Editor, select Profile node. and expand the
SET sql_mode='ANSI_QUOTES'
The following sections list the extensions provided for MySQL.
The following extended attributes are available on the MySQL tab:
Name |
Description |
---|---|
Retrieve with leading zeros |
When displayed, the default padding of spaces is replaced with zeros. For example, for a column declared as INT(5) ZEROFILL, a value of 4 is retrieved as 00004. If you specify ZEROFILL for a numeric column, MySQL automatically adds the UNSIGNED attribute to the column. Scripting name: ZeroFill |
Unsigned |
Indicates negative values are not allowed for the column. Scripting name: Unsigned |
National |
A way to indicate that a CHAR column should use UTF8 character set. Scripting name: National |
Character set |
Set of symbols and encodings. Scripting name: CharSet |
Collation |
Set of rules for comparing characters in a character set. Scripting name: Collate |
The following extended attributes are available on the MySQL tab:
Name |
Description |
---|---|
Database type |
Indicates the type of the database, as specified in the extended attribute type DatabaseType. Scripting name: DatabaseType |
The following extended attributes are available on the MySQL tab:
Name |
Description |
---|---|
Temporary table |
[v5.0 and higher] Used to create a temporary table. A temporary table is visible only to the current connection, and is dropped automatically when the connection is closed. Scripting name: Temporary |