A domain is essentially a data type with optional constraints (restrictions on the allowed set of values). The user who defines a domain becomes its owner.
Domains are useful for abstracting common constraints on fields into a single location for maintenance. For example, several tables might contain email address columns, all requiring the same CHECK constraint to verify the address syntax. Define a domain rather than setting up each table's constraint individually.
Just simply click -> Domain to open an object
pane for Domain. A right-click displays the popup menu or
using the object pane toolbar below, allowing you to create new, edit and
delete the selected domain.
Create Domain
To create a new domain
- Select anywhere on the object pane.
- Click the
New Domain from the object pane toolbar.
or - Right-click and select
New Domain from the popup menu.
- Edit domain properties on the appropriate tabs of the Domain Designer.
To create a new domain with modification as one of the existing domain
- Select the domain for modifying in the object pane.
- Right-click and select the
Design Domain from the popup menu or simply double-click the domain.
or - Click the
Design Domain from the object pane toolbar.
- Modify domain properties on the appropriate tabs of the Domain Designer.
- Click
Save As.
To edit the existing domain (manage its general etc)
- Select the domain for editing in the object pane.
- Right-click and select the
Design Domain from the popup menu or simply double-click the domain.
or - Click the
Design Domain from the object pane toolbar.
- Edit domain properties on the appropriate tabs of the Domain Designer.
To change the name of the domain
- Select the domain for editing in the object pane.
- Right-click and select the Rename from the popup menu.
Delete Domain
To delete a domain
- Select the domain for deleting in the object pane.
- Right-click and select the
Delete Domain from the popup menu.
or - Click the
Delete Domain from the object pane toolbar.
- Confirm deleting in the dialog window.
Achieve Domain Information
To achieve a domain information (OID, Base Type, Scale and DDL, etc)
- Select the domain in the object pane.
- Right-click the selected domain and choose Domain Information from the popup menu to view the Object Information.
or - Choose View -> Object Information in the main menu.