Cmd+Y or View > Show Query History. There is also a History toolbar button, which you add through View > Customize Toolbar.

Query history drawer: entry list on the left, details on the right
The Drawer
The drawer opens under the editor and you can drag its divider to resize it. It remembers its height, its filters, and whether it was open, per connection. Entries are grouped by day, newest first, under Today, Yesterday, or the date. Each row shows whether the query succeeded, the query text, the database, the time it ran, and how long it took. A query that ran in under a millisecond shows<1 ms; a step whose duration was never measured shows – rather than 0 ms.
The right pane shows the selected query with syntax highlighting for the database it actually ran against, plus its connection, database and schema, timestamp, duration, row count, source, and the error message for failed queries.
Recent queries also appear in Open Quickly. For a summary of what this history adds up to, rather than a list of it, see Query Insights.
Scope
History is scoped to the connection you are looking at. Switch the first popup to All Connections to search across every connection you have; rows then show which connection each query came from, so you can tell two databases namedapp apart.
Loading a query that belongs to another connection opens it in a new tab in that connection’s own window, rather than running it against the connection in front of you. Run in New Tab is dimmed for those entries, because only the connection that recorded a query can run it. Load it there and run it from that window.
Filtering
Search matches partial words, so typing
cust finds customers. Several words all have to match, but they do not have to be next to each other: select customers finds SELECT id, name FROM customers.
Pausing
The pause button stops recording new queries on this Mac. Nothing is recorded from any source while it is paused, including row edits, structure changes, imports and AI clients, and the drawer says so until you resume. Pausing is local to the Mac you press it on, and it survives relaunch.Sources
TablePro runs SQL on your behalf in several places, and the Source menu decides which of those you see. It defaults to My Queries, which is the SQL you wrote yourself.
Turn on Table Browsing to see exactly what the app sent while you clicked around a table. Turn on Structure Changes to review what altered a schema and when.
Working With Entries
Click a row to select it and the details appear beside it; the keyboard stays in the list, so arrow keys keep moving through entries. Loading a query into the editor is a separate, deliberate step: press
Return with the list focused, double-click the row, or click Load in Editor.
Run in New Tab sends the query to the server, so an entry that writes (INSERT, UPDATE, DELETE, or a schema change) asks for confirmation first, whatever the connection’s safe mode is set to. Reads run straight away. An entry that uses query parameters opens the parameter panel instead of running, because parameter values are never recorded.
Clearing History
The trash button clears exactly what the drawer is showing, including whatever the filters are hiding. Scoped to one connection it leaves every other connection alone; with a date range selected it only clears that range; and with the default My Queries source it leaves table browsing, row edits, imports and AI queries in place. It asks first, and the confirmation says which of those two it is about to do. There is no undo. Settings > Data > Query History > Clear History… clears everything, for every connection.Storage and Retention
History lives in~/Library/Application Support/TablePro/query_history.db, a local SQLite database with a full-text index.
Configure retention in Settings > Data > Query History:
Deleting a connection deletes its query history with it.
Query parameter values are never written to disk. The user and role editor never records a statement that carries a password, such as
CREATE USER ... IDENTIFIED BY. A query you write yourself is recorded as you wrote it, so use the pause button before running one that contains a secret.
Search From External Clients
History is searchable from MCP clients. Thesearch_query_history tool returns matching entries with timestamp, connection, query text, source, and outcome. The Raycast extension wraps this in a Search Query History command.
See search_query_history and Raycast commands.
