Online Documentation for SQL Manager for PostgreSQL

Query Management Tools


When using SQL Manager for PostgreSQL, you are provided with two basic tools you may need to manage your SQL queries: Query Data for editing  SQL query text directly and Design Query for building queries visually. Find the list of common SQL query management operations below.

 

Creating New Queries

In order to create a new query in Query Data:

 

In order to create a new query in Design Query:

  • select the Tools | Design Query main menu item or use the corresponding btnNewQueryBuilder toolbar button;
  • build the query visually within the Builder tab of Query Designer.

 

Editing Queries

In order to open a query in Query Data:

  • select the Tools | Query Data main menu item or use the corresponding btnShowSQLEditor toolbar button;
  • use the numbered tabs at the bottom of the editor window to switch between previously edited queries. The last edited query is displayed automatically on opening the editor;
  • edit the query text within the Query tab of Query Data.

 

In order to open a query in Design Query:

  • select the Tools | Design Query main menu item or use the corresponding btnShowQueryBuilder toolbar button;
  • the last edited query is displayed automatically on opening Design Query;
  • to load a previously saved diagram, click the Load diagram item of the Navigation bar;
  • to load a query from an *.sql file, open the Query tab and click the Load SQL button of the Navigation bar;
  • edit the query visually within the Builder and/or the Query tabs of Design Query.

 

In order to load a query from an *.sql file:

  • select the Tools | Query Data main menu item or use the corresponding btnNewSQLEditor toolbar button;
  • click the Load from file item of the Navigation bar;
  • browse for the query file using the Open SQL File dialog;
  • edit the query text within the Query tab of Query Data.

 

Executing Queries

  • create a new query or open an existing one;
  • click the btnExecuteQuery Execute item of the Navigation bar or use the F9 hot-key to execute the query;
  • view/edit the returned data within the Results tab of Query Data.

 

Saving Queries

  • create a new query or open an existing one;
  • click the Save to file Navigation bar item (in Query Data) or the Save SQL Navigation bar item (in Design Query), or use the Ctrl+S shortcut to save the query using the Save as... dialog;
  • click the Save diagram Navigation bar item in Design Query to save the designed diagram;

or