Creating Table
Top  Previous  Next


To create a table, select the Tables branch in the database tree on the Databases tab of the DB Explorer, right-click and choose item New object from the popup menu.

Step 1  
 
On the first step of the Create Table Dialog you should set various table parameters.

Table
Select the namespace from the drop-down list and set the table name in the edit field.

With OIDs
This option specifies whether rows of the new table should have OIDs (object identifiers) assigned to them.

Temporary
Check this option to create a temporary table. A temporary table will automatically be deleted if a connection dies and the name is per connection. This means that two different connections can both use the same temporary table name without conflicting with each other or with an existing table of the same name. (The existing table is hidden until the temporary table is deleted).

Inherits From
If you want the new table to be inherited from one or several existing tables, move these tables from the AvailableTables list to the Selected Tables list by clicking buttons > and <.

Table Owner
Select the user to own this table from the drop-down list.

Step 2  
 
On the second step of the dialog you should set the properties of the first table field.

Column
Set the field name in this edit field.

Type
Select the data type for the field from the drop-down list. For some of the types size and precision can also be set.

Not null
Check this option to forbid an empty field value.

Number of Array Dimensions
Set the number of array dimensions in the spin field. Skip it if the field is not an array field.

Unique
Check this option to include the field to the unique key (index).

Primary Key
Check this option to include the field to the primary key.

Default Value
In this edit field you can set the default field value.   

Click OK when you are done to create the new table with the parameters you set.

The created table will be opened in the Table Editor, where you can create and edit table fields and indices, manage table data, and so on (see below).

The table will also become available in the database tree of the DB Explorer.

Any time you want to edit the table, you can open it in the Table Editor by right-clicking the table alias in the database tree of DB Explorer and choosing item Edit table <table_name> in the popup menu. Using this popup menu you can also rename or drop the table.

See also:
Table Editor
Compile Window


Availability:
Windows Professional

Yes

Windows Lite

Yes

Linux Professional

Yes

Linux Lite

Yes