Table Editor
Top  Previous  Next


Table Editor is a powerful tool, allowing you to create, edit and drop table fields and indices, manage table data and set other table properties.

In the left part of the window there is a tree of table's subobjects and linked objects: fields, foreign keys, checks, indices, triggers and rules. It allows you to access the required object quickly. Using the Databases drop-down button on the editor toolbar you can switch between the active databases. The drop-down list of all the database tables on the toolbar allows you to change the edited table.
 
Fields  
 
This tab is provided for managing table fields. The fields are displayed in a list with their name and properties. A double-click on a field opens the Field Editor for editing the field. A right-click displays the popup menu, allowing you to create new, edit or drop the selected field. The Export Metadata item of the popup menu opens the Export Data Dialog for exporting field metadata any of 14 available formats. The popup menu of the Fields tab also allows you to duplicate one of the fields (create a new field with the same properties as the selected field has), reorder fields and copy all the field names to the Windows Clipboard.

Foreign Keys  
 
This tab is provided for managing table foreign keys. Names and properties of the foreign keys are displayed in a list. Right-clicking in the tab area allows you to add, edit or drop a foreign key. A double-click on a foreign key opens the Foreign Key Editor for editing the foreign key.

Checks  
 
This tab is provided for managing table checks. Names and properties of the checks are displayed in a list. Right-clicking in the tab area allows you to add, edit or drop a check. A double-click on a check opens the Check Editor for editing the check.

Indices  
 
This tab is provided for managing table indices. The indices are displayed in a list with their names and properties. A double-click on an index opens the Index Editor for editing the index. A right-click displays the popup menu, allowing you to create new, edit or drop the selected index.

Triggers  
 
This tab is provided for managing table triggers. Names and properties of the triggers are displayed in a list. Right-clicking in the tab area allows you to add, edit or drop a trigger. A double-click on a trigger opens the Trigger Editor for editing the trigger.

Rules  
 
This tab is provided for managing table rules. Names and properties of the rules are displayed in a list. Right-clicking in the tab area allows you to add, edit or drop a rule. A double-click on a rule opens the Rule Editor for editing the rule.

Data  
 
This tab allows you to manage table data. There are three data representation modes now available.

Grid View
View data as a grid.

Form View
View data as a form: there is only one record displayed at the time, to view another record use the navigation buttons.

Print Data
View data in WYSIWYG mode, ready for printing. The acquired query can be saved to filed and/or printed.

To navigate data, use buttons above the grid. To edit record data, just click in the appropriate cell.
You can also export these data to file (Export Data item in the popup menu or button on the toolbar), export them as INSERT statement to the SQL Script (Export as Insert item in the popup menu or button on the toolbar), or import data to the table from MS Excel, DBF, TXT or CSV file (Import Data item in the popup menu or button on the toolbar).

Description  
 
The Description tab displays a simple edit area, where you can set optional text, describing the current table.

DDL  
 
The DDL tab displays the SQL text for creating the current table with all the parameters you set: fields, keys, table type, etc. This text can't be edited, but it can be copied to the clipboard.

Table Editor Toolbar  

Button
Action


Databases
Drop-down menu to switch between the databases. If you switch to the database, which is not currently active, you'll be offered to connect to it. After you switch to the new database, the first table of this database becomes active in the Table Editor. To switch between the tables, use the drop-down list of the current database tables in the middle of the panel.
Grants On Table
Activates the Grant Manager for the current table, where you can set the access grants for the table.
Save Description
Saves the table description, set on the Description tab.
Help on SQL
Runs the PostgreSQL Reference Help file 'PostgreSQL.chm', which is included into the PostgreSQL Manager installation package.
Default Size
Brings the window to its default size (restricted by the main window and the DB Explorer).
Table Properties
Allows you to edit the table properties, set on its creation.
Commit Transaction
Commits the current transaction.
Rollback Transaction
Rollbacks the current transaction.
Export Data (Data tab only)
Activates the Export Data Dialog, which allows you to export the table data to file.
Export Data as INSERT Statements (Data tab only)
Opens the Export Data As Insert Dialog, which allows you to export the table data to the SQL script as INSERT statements.
Import Data (Data tab only)
Opens the Import Data Wizard, which allows you to import data to the table from file.
Copy Data From File on Server
Opens the Copy Data from File Wizard, which allows you to copy data from file on server
Copy Data to File on Server
Opens the Copy Data to File Wizard, which allows you to copy data to file on server.
BLOB Editor
Activates the BLOB Editor window for viewing and editing the BLOB field valies
Analyze & Vacuum Table
Activates the Analyze & Vacuum Table service for this table.


See also:
Creating Table
Field Editor
Foreign Key Editor
Check Editor
Index Editor
Compile Window


Availability:
Windows Professional

Yes

Windows Lite

Yes

Linux Professional

Yes

Linux Lite

Yes