View Editor
Top  Previous  Next


The View Editor allows you to create new views and edit the existing ones (see How to create a view and How to edit a view).

View  
 
The basic view parameters are set on the View tab as SQL text for creating the view: the list of the view fields is set in brackets after the view name, the list of the selected fields is set after the SELECT statement and the condition for the selection is set after the WHERE statement.

Fields  
 
The Fields page contains the properties of the view fields in form of a grid. The following properties are displayed: the field name, type, and domain, if the field is not null, and the default and computed sources of the field (if any). Fields, included into the primary key are marked with an icon. In the edit field at the bottom of the window you can set the description of the current field.

Clicking the column title sorts fields by the current parameter or changes the sorting direction. Right-clicking activates the popup menu, which allows you to change the field order or copy the field name list to the clipboard.

Rules  
 
The Rules tab displays the rules for the view. The popup menu of this tab allows you to create, edit and drop the rules (see Rule Editor for details).

Data  
 
On the Data page the view data are displayed. They can be viewed in three modes (chosen by clicking the according button at the bottom of the window):

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.

These data can't be edited, but can be exported (Export Data item in the popup menu or button on the toolbar) or exported as INSERT statement to the SQL Script (Export as Insert item in the popup menu or button on the toolbar).

Description  
 
On the Description tab you can set the view description that can be any optional text. The description can be saved by clicking button Save Description on the toolbar.

DDL  
 
On the DDL tab you can view the SQL text for creating the view with the properties you set. This text can't be edited, but can be copied to the clipboard.

To call the PostgreSQL Reference, click button Help on SQL on the toolbar.

Button Default Size brings the window to the default size (restricted by the main window and the DB Explorer).

The drop-down list of the current database views on the toolbar allows you to switch the edited view.

When you are done, click button Compile on the toolbar to start the process of compilation. The Compile Window will appear where you will be able to view and edit the result SQL statement for creating the new view. Commit the transaction, and if it is successful, the new view will be created or the view parameters will be changed.

See also:
Table Editor
Schema Editor
Function Editor
Rule Editor
Trigger Editor
Index Editor
Sequence Editor
Type Editor
Aggregate Editor
Operator Editor
Language Editor
Compile Window


Availability:
Windows Professional

Yes

Windows Lite

Yes

Linux Professional

Yes

Linux Lite

Yes