Skip to content
Keepware Subscribe

Query MySQL and PostgreSQL in QuerentDB

Browse tables with filters, write SQL with autocomplete, Format and Explain, sort, copy and export results, and read table structure in QuerentDB.

Part 7 of 13· Nov 11, 2026·4 min read

Video · 1:20 · narrated, with captions
Transcript

Browse a table with filters. Open the MySQL connection and pick orders. Data shows its rows, a hundred at a time. Add filter narrows them down: here, only the refunded orders. Choose Apply filters. Click a column header to sort, on the server.

Write and run a query. For your own SQL, open a new tab with the plus button. As you type, QuerentDB suggests keywords, tables and their columns. Choose Run, or press Control Enter. Only the selection runs when there is one. The results show the row count and the time. Auto LIMIT means QuerentDB added a limit, so a slip never reads a whole table.

Format and Explain. Format lays the statement out, one clause per line. Explain shows the query plan, so you can see whether an index is used. Back to results returns to the rows.

Sort, copy and export. Click a header to sort the results here. Right-click a cell to copy it, its row, or the column name. And Export saves all the rows as CSV or JSON, without the auto limit.

Columns, indexes and the definition. Columns, Indexes and Definition show how a table is built, and Definition has the full create statement to copy. PostgreSQL works the same way. Its schemas are listed with their tables and views.

QuerentDB, a desktop database client by Keepware, opens a MySQL or PostgreSQL connection as a tab with its tables and views on the left. Data browses a table with column filters and server-side sorting; Query is a SQL editor with autocomplete, Format, Explain and Run (Ctrl+Enter), which runs the selection if there is one. Results can be sorted, copied and exported to CSV or JSON. Columns, Indexes, Definition, Routines and Triggers show how a table is built. Reads use the connection’s read-only account; anything that writes asks first and switches to the read-write account.

How do I browse a table?

Pick a table on the left (each shows an estimated row count, and Search tables… filters the list), then choose Data. Rows come 100 to a page (50, 100, 500 or 1,000).

  • Add filter adds a condition: pick a column and an operator (=, ≠, >, <, ≥, ≤, IN, NOT IN, LIKE, NOT LIKE, BETWEEN, IS NULL, IS NOT NULL), enter the value, and choose Apply filters. Each condition can be switched off or removed; Clear removes them all.
  • Click a column header to sort, on the server.
  • Count rows adds the total; SQL copies the SELECT behind the page, and Open in Query puts it in the editor.

The orders table in Data, filtered to status = refunded and sorted by total

How do I write and run a query?

Open a new tab with + (Ctrl+T) and type in Query. As you type, QuerentDB suggests keywords, table names, and a table’s columns after table.. Choose Run or press Ctrl+Enter: with text selected, only the selection runs; otherwise the whole editor does. Several statements separated by ; each get their own result tab.

The results header shows the row count and the time. Auto LIMIT 500 means QuerentDB added a LIMIT to a SELECT that didn’t have one, so a slip never reads a whole table; change or turn it off in Settings → General → Queries. Nothing returns more than Max rows per query (10,000 by default); when results are cut off, they’re marked Truncated.

A query joining customers and orders, with 60 rows and the Auto LIMIT 500 badge

How do I format a query or see its plan?

  • Format lays the statement out, one clause per line, without changing it.
  • Explain shows the plan of the first statement: on MySQL as a table (EXPLAIN), on PostgreSQL as EXPLAIN (FORMAT JSON). Back to results returns to the rows. To run EXPLAIN ANALYZE, type it and choose Run.

The query plan of the customers and orders join

How do I sort, copy or export results?

  • Click a header to sort the results you have (ascending, descending, off).
  • Right-click a cell for Copy value, Copy row as JSON, Copy row as TSV and Copy column name.
  • Export offers Export CSV and Export JSON, which run the statement again without the auto limit and save every row, up to your workspace’s export limit; and Copy as TSV for the rows on screen.
  • Table and JSON switch the view; Ask about this data hands the first rows to the AI Editor.

The Export menu: Export CSV, Export JSON and Copy as TSV

How do I see how a table is built?

  • Columns: each column’s type, whether it allows NULL, its key and default.
  • Indexes: name, type (unique or regular) and columns.
  • Definition: the full CREATE statement, with Copy.
  • Routines and Triggers: stored functions and procedures, and triggers, where the server has them and your account may see them.

The Definition of the customers table

These views are read-only. Change a table with ALTER, CREATE INDEX and the like in the editor: QuerentDB asks before it runs them and refreshes the structure afterwards.

What happens when I run a write?

QuerentDB shows the statement, the account it switches to, and about how many rows it will affect, and runs it when you choose Run; in a protected environment you also type the environment’s name (see Environments). A run that contains BEGIN … COMMIT is one transaction; QuerentDB rolls back anything left open at the end of the run, so a transaction never stays open between runs.

Does PostgreSQL work the same way?

Yes. PostgreSQL objects are listed with their schema, such as marketing.campaigns, and views appear under Views. RETURNING works on writes.

A PostgreSQL view, marketing.campaign_revenue, in Data

FAQ

Can I edit a cell in the grid?

Not yet. Data is for reading; change rows with UPDATE, INSERT and DELETE in Query, which asks before it runs them.

Which versions are supported?

MySQL 5.7 to 9 and PostgreSQL 13 to 17. See Supported databases and versions.

Does QuerentDB keep a history of my queries?

Each tab keeps its own editor contents, and tabs come back when you reopen QuerentDB. There’s no separate history panel yet.