| Running a PostgreSQL query | ||
|
Queries are only able to run if there is a successful connection to the database. Type in your SQL query and press Cmd-E or the "Execute Query" button to run the query. In addition to the results being turned, the status line at the bottom of the screen will let you know how many records were returned. In the event the query was successful but returned no results (say from an update query), the status bar will let you know is was successful, but returned 0 rows. PostMan Query has the ability to run queries in several of different ways. Multiple queries can be run if they are separated by a semicolon. If a query is highlighted (selected with the mouse), PostMan Query will only run the selected portion of the query window.
Running only the selected query
Running the entire query
|
||
| Displaying table contents | ||
|
PostMan Query makes it easy to view the contents of a table. Simply double-click on the database table name in the outline view on the left-hand side of the screen. This will automatically insert the correct query into the window and run the query. Note: Using this feature will erase the contents of the query window!
A new feature to PostMan Query is the ability to limit the query results returned without specifying a limit in the query itself. Simply enter a number in the Limit field to limit the results returned. This is especially handy when doing the above action and you just want to see a sample of the results without returning 50,000 records! If there is a limit inside of the query window, PostMan Query will use it instead of the limit supplied in the limit field. | ||
| Save Results | ||
| ||
| Save SQL | ||
|
||