# 1

# Pogled izvajanje poizvedbe

Use the query perspective to execute SQL statements. To switch to this perspective, use the Perspective Query execution (SQL) menu, or the Ctrl S shortcut.

# Pogled poizvedbe

The query exec perspective with one SELECT statement executed

The perspective is divided in two horizontal panes: the left pane for the user defined favorite statements, and the right pane being the action area.

In the figure above, there are two favorites: a SELECT statement (named "List customers") and an INSERT statement (named "New customer ..."). The INSERT statement needs one "name" parameter, whereas the SELECT statement does not require any parameter to be executed.

The icon difference between the two illustrates the fact that the INSERT favorite is also marked to be an action: it will be proposed as an action to be executed when the contextual menu is brought up in any grid representation of a resultset.

The left part of the perspective lists the favorite statements which have been user defined. Activating a favorite (double clicking) resets the SQL text area's contents to the selected statement's SQL.

The right pane is composed of zero or more tabs where the SQL is entered and executed. In each tab there is:

območje SQL na zgornjem levem delu

ukazni gumbi na zgornjem desnem delu

zgodovina izvajanja na spodnjem levem delu

rezultati izvajanja v spodnjem desnem delu

# Območje SQL

The SQL area is an SQL editor. The SQL can be any SQL understood by the database, with the exception of variables (which must have a specific syntax).

Tipkovne bližnjica v urejevalniku SQL so:

Ctrl PRESLEDEK za izpis seznama dopolnjevanja

Ctrl ENTER za izvedbo kode SQL

Ctrl l za počiščenje urejevalnika

Ctrl Gor in Ctrl Dol za krmarjenje po zgodovini urejevalnika

# Ukazni gumbi

The commands available through the command buttons are:

Clear: clears the editor (similar to the Ctrl l shortcut)

Variables: shows or hides the variables panel where you can give values to the variables present in the SQL code. The panel is automatically shown when a variable is detected in the SQL code

Execute: executes the SQL code. If the SQL code contains some variables which have not been set, then a popup first appears requesting the variables to be given values. This is similar to the Ctrl ENTER shortcut

Indent: re-indents the SQL code (warning: this removes any comments)

Favorites: adds the current SQL code to the favorites

# Zgodovina izvajanja

The execution history part contains a list of the past executed statements, ordered by execution date along with an indication when the statement was executed (11 minutes in the figure above). Selecting an history item displays the corresponding result in the execution results part.

The Copy button copies the currently selected history item's SQL code to the SQL editor, and the Clear button removes all the history items.

Note that any given history item can also be removed individually using the Suppr key.

# Rezultati izvajanja

The Execution results part displays the execution result of the currently selected execution history item, as a table for SELECT statement, giving information for other types of statement, or giving the execution error notice if the execution failed.