Musubi SQL Help

Musubi SQL lets you work with SQL Server, PostgreSQL, MySQL, Oracle, SQLite and other databases from a single window. Open the help for the feature you are using. Operations shared by every screen are described under "Common operations" on this page.

Help by feature

Press ? at the top right of any screen, or F1, to open the help for that screen.

The main window

Musubi SQL + Connection New SQL Open ER diagram Names Settings Help 1 ▾ Connection (user) ▾ Database ▾ Schema ▸ Tables (12) ▸ Views (3) 2 SQL │ emp │ ER Diagram 3 Tab content (SQL, table, ER diagram, etc.) 4 Messages Connection (user) · DB · version 5
The window has four parts: the top bar, the tree on the left, the tabs on the right and the status bar at the bottom.
No.PartDescription
1Top barCreates new connections, SQL tabs and ER diagrams. On the right you switch the display names (logical / physical) and open Settings and Help.
2TreeLists the databases, schemas, tables and other objects of each connection. The name in parentheses next to a connection is the user you are connected as. See Using the tree.
3TabsSwitch between open SQL editors, tables, ER diagrams and so on. Close a tab with Ctrl+W, its ×, or a middle click.
4Tab contentThe screen itself. Press ? at the top right to open the help for that screen.
5Status barThe left side shows messages such as execution results; the right side shows the connection of the current tab, including whether it is in manual commit or read-only mode. The small text at the far right (e.g. 0.5.0 #12) is the app version and build number; hover over it to see when the build was made.

Logical and physical names

Musubi SQL can show the comment on a table or column as its "logical name" (e.g. emp_name → "Employee name"). Use "Display names" on the top bar or Ctrl+L to switch between three modes:

Display namesWhat is shown
LogicalThe logical name if there is a comment, otherwise the physical name
PhysicalThe actual table or column name
BothBoth names (grid headers use two lines)

If a comment contains a separator, as in "EmployeeID: Number that uniquely identifies an employee", the part before it is the logical name and the rest is the description. You can change the separators in Settings. The defaults are the ASCII colon :, the full-width colon : (U+FF1A, common in Japanese comments) and the tab character. Without a separator, the first line of the comment is the logical name.

Logical names in SQLite

SQLite has no way to attach comments to tables or columns (there is no COMMENT ON or similar). Instead, Musubi SQL reads the line comments (--) written in the CREATE TABLE statement as logical names. To show logical names, write them into the CREATE TABLE statement when you create the table.

CREATE TABLE statementCREATE TABLE employees ( -- Employee: Basic employee information
  emp_id INTEGER PRIMARY KEY, -- EmployeeID
  emp_name TEXT NOT NULL -- Employee name
);
Table logical nameEmployee (description: Basic employee information)
Column logical namesemp_id → EmployeeID, emp_name → Employee name
You cannot edit logical names in SQLite from the GUIThe comments are part of the CREATE TABLE statement, so changing them later means rebuilding the table (create the table with a new CREATE TABLE statement and move the data). Columns added with ALTER TABLE … ADD COLUMN cannot have a logical name (a trailing -- comment causes an error).

Keyboard shortcuts

KeyAction
Ctrl+EnterExecute the statement at the cursor (or the selection)
F5Execute all statements
Ctrl+E / Ctrl+Shift+EEstimated execution plan / Actual execution plan
Ctrl+Q / Ctrl+Shift+QFormat SQL / Format SQL as one line
Ctrl+K / Ctrl+Shift+KComment out / Uncomment
Ctrl+F, Ctrl+H, Ctrl+GFind, Replace (Ctrl+R also works), Go to line
Ctrl+N / Ctrl+O / Ctrl+SNew SQL / Open / Save (Ctrl+Shift+S is Save As)
Ctrl+LSwitch display names (in an ER diagram, the display names of that diagram)
Ctrl+Shift+HSQL execution history
Ctrl+WClose the tab
Ctrl+,Settings
F1Help (the page for the current screen)

For keys that work in grids, see Working with grids.

Settings

Open Settings with ⚙ Settings on the top bar (Ctrl+,).

SettingDescriptionDefault
ThemeUse OS setting, Light or Dark. The change applies as soon as you select it.Use OS setting
Shade every other row in data gridsLightly shades alternate rows in result and data grids.On
Comment separatorsCharacters that split a comment into a logical name and a description. The comment is split at the first occurrence of any of them. Leave empty to not split. To split at tab characters, check "Also split at Tab characters".::, Tab (checked)
Maximum rows to fetchThe maximum number of rows loaded for SQL results and table data (same as "Max" in the SQL tab).1000
Editor font sizeFont size of the SQL editor.14
Wrap long lines in the SQL editorWraps lines that are wider than the editor (same as "Wrap" in the SQL tab). When off, the editor scrolls horizontally.Off
Confirm before executing dangerous SQL (DROP / TRUNCATE / UPDATE or DELETE without WHERE)Asks for confirmation before dropping objects or deleting or updating every row.On

Moving settings (export and import)

You can move connection settings and more in one go, from the installed version to the portable version or to another PC.

  1. On the source, choose "File" → "Export Settings...", select what to export (Connection settings, Favorites, SQL execution history, App settings) and save the file (.msqsettings).
  2. On the destination, choose "File" → "Import Settings...", select the file, choose what to import and press "Import".

Supported databases

TypeRequirements
SQL Server, PostgreSQL, MySQL / MariaDB, Oracle (12.1 or later), SQLiteNothing else to install.
SQL Server Compact (.sdf)Windows only. The SQL Server Compact 4.0 SP1 runtime (or the location of its DLL).
SQL Server LocalDBWindows only. LocalDB and Microsoft ODBC Driver for SQL Server.
ODBCThe ODBC driver for the target database.
JDBCJava 11 or later, and the JDBC driver (.jar) for the target database.

For details, see Connection types and fields.

License terms and disclaimer

This app can modify database contents directly. You are responsible for the results of your operations (such as lost or corrupted data), and the author accepts no liability except in cases of intent or gross negligence. Before using it in production, try it in a test environment, and always take a backup first. For read-only use, turn on "Read-only" in the connection settings.

▲ Back to top

← Musubi SQL website (download)