An entity can have a primary key and many alternate keys. The keys are stored in the Keys tab in the Entity Properties form.
To create a key
To create a PK (unique) attribute
To assign an attribute to key
or
|
Note:
|
Toad Data Modeler allows you to check/uncheck the NotNull property for PK and AK attributes.This is possible only if the Allow Null Attributes in Keys checkbox is selected (unchecked by default).
To select this checkbox
Select Settings | Options | Physical Model and select the checkbox.
If this checkbox is not selected, Toad Data Modeler doesn’t allow you to uncheck the NotNull checkbox in key attributes.
The availability of this option differs by database:
Database | Allow NULL in PK | Allow NULL in AK |
---|---|---|
DB2 z/OS v. 9, 10, 11 | n/a | n/a |
DB2 v. 8, 9.x, 10.x | n/a | n/a |
Greenplum | n/a | available |
Ingres 9.3, 10 | n/a | n/a |
Microsoft Access | available | available |
Microsoft Azure SQL Database | n/a | available |
SQL Server 2000 | n/a | n/a |
SQL Server 2005 | n/a | available |
SQL Server 2008 | n/a | available |
SQL Server 2012 | n/a | available |
SQL Server 2014 | n/a | available |
MySQL 5.x | n/a | available |
Oracle | available | available |
PostgreSQL | n/a | available |
SQLite 3.7 | available | available |
Sybase ASE, Sybase IQ | n/a | n/a |
Sybase SQL Anywhere | n/a | n/a |
Teradata | n/a | n/a |
If the Allow Null Attributes in Keys checkbox is selected:
See Synchronization of NotNull and Mandatory Parent for more information.
or
Attributes Tab | Description |
Available |
A list of all non-assigned attributes of the entity |
Selected |
Attribute(s) that have been assigned the key. |
|
Assigns selected attribute to the key. Tip: - For multiple selection of attributes, use SHIFT or CTRL. |
|
Removes the selected attribute from the key. Tip: - For multiple selection of attributes, use SHIFT or CTRL. |
|
Assigns all attributes at once. |
|
Removes all attributes from the key at once. |
Notes Tab |
You can write notes related to the key you are editing. |
Using Index Properties Tab |
Definition of other Key properties, dependent on the database platform and version you are using. |
or
![]()
Note: It is possible to delete a primary key. It's not possible to delete an alternate key of unique attribute.
In Toad Data Modeler, you can link parent and child entities:
To set a linking method
© 2023 Quest Software Inc. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy