Working with Tables
Top  Previous  Next


Relational databases store all their data in tables. A table is a data structure consisting of an unordered set of horizontal rows, each containing the same number of vertical columns. The intersection of an individual row and column is a field that contains a specific piece of information. Much of the power of relational databases comes from defining the relations among the tables.

Create table  

To create a new table

1 Select the Database | New Object menu item.  
2 Select Tables in the New Object window.  

or  
 
1   Select the Tables branch in the DB Explorer.  
2   Right-click and select the New Object item from the popup menu.  

In the Create Table Dialog:  
 
3   Set the main properties of the new table: table type, row format, etc.  
4   Set the properties of the first table field: name, type, and others. (See Field Editor).  

To create a new table with the same properties as one of the existing tables has

1 Select the Database | Duplicate Object menu item.  
2 Select the origin table (the table to duplicate).  

or  
 
1   Select the origin table (the table to duplicate) in the DB Explorer.  
2   Right-click and select the Duplicate Object item from the popup menu.  

3 Set the name of the new table in the dialog window.  

The Duplicate Object window allows you to select the database to create the new table in and to edit the result SQL statement for creating the table.
 
Edit table  

To edit the existing table (manage its fields, indices, data, etc)

1 Find the table you want to edit in the DB Explorer tree (press Ctrl+F for quick searching).  
2 Double-click the table.  

or  
 
2   Right-click and select the Edit Table <Table_Name> item in the popup menu.  

Now you can manage table subobjects and data on the appropriate tabs of the Table Editor.

To view or edit table properties, set on creation (table type, min and max row number, etc)

1 Find the table to edit its properties in the DB Explorer tree (press Ctrl+F for quick searching).  
2 Right-click and select the Table Properties item from the popup menu.  

This opens the Table Properties window, where all the table options are available for viewing and editing (except the table name).

To change the name of the table

1 Find the table you want to rename in the DB Explorer tree (press Ctrl+F for quick searching).  
2 Right-click and select the Rename Table <Table_Name> item from the popup menu.  
 
Drop table  

To drop a table

1 Find the table you want to drop in the DB Explorer tree (press Ctrl+F for quick searching).  
2 Right-click and select the Drop Table <Table_Name> item in the popup menu.  
3 Confirm dropping in the dialog window.