Wählen Sie Ihren SQL-Server:
AnySQL
MySQL
MS SQL Server
Oracle
PostgreSQL
SQLite
Firebird
SQL Anywhere
DB2
MaxDB

Neuheiten abonnieren
Partners
Testimonials
J Canepa: "There is a lot of software out there for managing PostgreSQL. Yours is simply the best! Great product".
Patric Michael: "Thank you for a wonderful product, and all the hard work you've obviously taken".

More

Add your opinion

PostgreSQL Maestro online Help

Prev Return to chapter overview Next

Fields

Table columns and composite type fields are created and edited in PostgreSQL Maestro within the Field Editor.

 

 

To add a new table column, you should either:

 

open the table in Table Editor and the Fields tab there;
press the Insert key or select the Add New Field... item from the popup menu (alternatively, you may use the corresponding link of the Navigation Bar)

or

select the table in the explorer tree and use the Create New Field popup menu item

or

select the table Fields node or any field within the table in the explorer tree and use the Add New Field... popup menu item.

 

 

 

The information below are useful for editing of table fields. Composite types' fields admit to editing the comment only.

 

Specify the Field Name and specify the Field Data Type by selecting it from the drop-down list.

 

Note: the name of the object must be unique among all the object names in the table. You can use any identifier that is allowed by PostgreSQL server.

Note: A column's data type is now being changed since the 8.0 version of PostgreSQL Server.

 

Parameters group options are described at the Field parameters topic.

 

To set the default value for the field use the Default value box. This value is always inserted to the table in this field when the field value is not specified in the insert query.

 

Collation (PostgreSQL 9.1+)

Specify a collation to the column to define the sort order and character classification behavior of column data. The collation must be of a collatable data type. If not specified, the column data type's default collation is used.

 

The Comment box allows you to set optional text describing the field.

 

 

Table fields are edited within the Field Editor dialog window. In order to open the dialog you should either

 

open the table in Table Editor and the Fields tab there;
press the Enter key or select the Edit Field item from the popup menu (alternatively, you may use the corresponding link of the Navigation Bar)

or

select the field to edit in the explorer tree and use the Edit Field popup menu item.

       

You can change the name of the field using the Rename Field dialog. To open the dialog you should either

 

select the field to rename in the explorer tree;
select the Rename Field item from the popup menu

or

open the table in Table Editor and the Fields tab there;
select the field to rename;
select the Rename Field item from the popup menu (alternatively, you may use the corresponding link of the Navigation Bar).

 

 

 

To drop the table field:

 

select the field to drop in the explorer tree;
select the Drop Field item from the popup menu

or

open the table in Table Editor and the Fields tab there;
press the Delete key or select the Drop Field item from the popup menu (alternatively, you may use the corresponding link of the Navigation Bar)

 

and confirm dropping in the dialog window.

 



Prev Return to chapter overview Next