DBMaster

SQL editor and results

The Query tab is your SQL editor: several query tabs, suggestions of tables and keywords, syntax highlighting, history and saved queries.

Write and run

Write your SQL and tap Run (▶). If you select a piece, only the selection runs. A row of buttons above the keyboard inserts the most likely table names and keywords.

  • + opens another query tab (up to 2 in the free version; there is no limit in Pro).
  • Tools: Format, Explain, Snippets, Next gap «…», Run script and Save query (that last one is a Pro feature).
  • The ✨ button opens the AI assistant (optional).
  • Hide query leaves the whole screen for the result.
  • With several statements at once, each has its own result tab; if one fails, you can retry it or continue with the next ones.
SQL editor with a query and its result
Editor and result
Editor tools menu
Tools menu

When there is an error: line and column

If the server rejects the query and its message says where the problem is, DBMaster shows it under the error: “Error at line N, column M”, with the Go to line button, which takes the cursor right there. It works with the messages of MySQL and MariaDB (“at line N”), Oracle (“line N, column M”) and PostgreSQL (“Position: N”).

In the editor of procedures, functions and triggers (of every engine) the line with the error is also marked and line numbers are shown, which you can hide.

If the engine does not give the line (for example, a permission denied), the button does not appear. With queries that have parameters the line is shown but not the button, because the text sent is no longer the one written.

Syntax error with its line and column and the Go to line button
Line and column of the error

Query parameters

Write a name preceded by : (:minimum) or {{minimum}} where a value would go. When you run, DBMaster opens a dialog to give a value to each parameter:

  • The type is Auto (number or text depending on what you wrote) or you choose: Text, Number, List (for IN), NULL or SQL (inserted as is).
  • They are written into the query as SQL literals, already with their quotes.
  • Remember the values offers them the next time you run that query and as a starting point in others with the same name.

In Settings → Editor you can turn on that @name also counts as a parameter (SQL Server, ASE and MySQL use @ for variables, so it is off by default on them).

Dialog to give a value to the parameters minimo and estado
The parameters dialog

Execution plan

Tools → Explain shows how the server would run the query, step by step: each operator with its estimated rows, its cost percentage and its details. If a step reads a whole table, a warning suggests an index.

  • The plan is estimated: the statement is not run.
  • Run and measure really runs it to show real times and rows (where the engine allows it).

Available on PostgreSQL, MySQL, SQL Server, SAP Sybase ASE and Oracle (on Oracle also on databases opened read-only).

Execution plan with six steps, estimated rows and cost percentage
The execution plan

History, favorites and saved queries

The History tab has three views: History (everything you ran), Favorites and Saved. Saved queries are grouped in folders and keep their chart and their parameters. Every view has a search box. History is free; saving queries and marking favorites is a Pro feature.

Snippets (Tools → Snippets) insert templates such as SELECT … WHERE, JOIN or GROUP BY + COUNT; with Next gap «…» you jump to the next blank to fill.

Saved queries organized in folders
Saved queries
Snippets dialog
Snippets

Results: sort, filter, charts and compare

The result options button offers:

  • Filter rows, Select rows, Freeze columns… and Compact rows.
  • Copy results (if they do not fit as text, a link to a temporary file is copied).
  • Chart…: columns, bars, lines or pie. You choose the labels column, up to 8 value columns and how to group rows with the same label (Keep each row, Sum, Average or Count). The chart can be saved with the query.
  • Compare… compares two results, or a result with a file.
  • The download icon exports to CSV, JSON, HTML or SQL (a Pro feature).
Result options menu
Result options
Bar chart of spending by country
A bar chart

Next: Edit and import data →