Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners
Testimonials
Shafiq Far: "Just wanted to let you know that I think the SQL Maestro for Postgres is excellent. We've tried a variety over the past few years and none are even close to yours. Well done".
Armin Braunstein: "Also I must say, that your PostgreSQL Maestro tool is the best tool for PostgreSQL I have seen. For general I am really happy about the tool and how it works".

More

Add your opinion

PostgreSQL Maestro online Help

Prev Return to chapter overview Next

Create Domain Wizard

New Domains are created within Create Domain Wizard. In order to run the wizard you should either

 

select the Object | Create Database Object... main menu item;
select the Domain icon in the Create Database Object dialog

or

select the Domains list or any object from that list in the explorer tree;
select the Create New Domain... item from the popup menu

or

open Schema Editor and the Domains tab there;
press the Insert key or select the Create New Domain item from the popup menu (alternatively, you may use the corresponding link of the Navigation Bar).

       

To create a new Domain with the same properties as one of the existing Domains has:

 

select the Object | Duplicate Database Object... main menu item;
follow the instructions of Duplicate Object Wizard.
 

The basic principles of Create Object Wizards in PostgreSQL Maestro are explained in a separate topic. Below you will find a description of wizard steps that are unique for the current object.

 

Specify the properties for the new Domain according to your needs. The detailed description is given below.
 

 

Name

Specify a name for the domain.

 

Owner

Select the owner of the Domain from the drop-down list. By default, only the owner of an object can perform various operations with the object. In order to allow other users to operate it, privileges must be granted. (However, users that have the superuser attribute can always access any object.)

 

Comment

Supply a comment to the Domain if necessary.

 

Data Type

Select the underlying data type for the Domain. This may include array specifiers.

 

Not Null

The checkbox indicates that the values of the Domain are not allowed to be null.

 

Collation

Use the field to specify the sort order and character classification behavior of data. If no collation is specified, the underlying data type's default collation is used.

 

Default Value

The field is used to specify a default value for the columns of the domain data type. The field value may contain any variable-free expression (however, subqueries are not allowed). The data type of the default expression must match the data type of the domain. If no default value is specified then the default value is the null value.

 

Use popup menu to add a new check and set its properties in Check Properties modal window. You can also use the popup menu items to edit or delete the checks of domain being created.



Prev Return to chapter overview Next