Skip to content

Documentation / Tables

Table explorer

Browse data in a grid, filter it, edit it and apply your changes in a single transaction.

The Tables tab shows the database's data without writing SQL.

The Tables tab: list of tables and data grid

The list on the left shows every table you can access, with its number of columns. / puts the cursor in the search box.

Each table opens in a tab. A tab keeps its filters and its pending changes when you switch to another table. If you close it with unapplied changes, OpenDB asks for confirmation.

A table has three views.

View Content
Data The grid of rows
Structure Columns, indexes and keys
DDL The table's CREATE TABLE statement

Structure view of a table

The grid

  • Rows are loaded in pages of 100.
  • Column widths are adjusted with the mouse.
  • An arrow next to a foreign key opens the referenced row (Ctrl + click).
  • Ctrl + C copies the selected cells.
  • A right click opens the context menu of a cell or a row.

For large tables, the total number of rows comes from the engine's statistics and is shown as an estimate ("about N rows"). As soon as you filter, the count is exact.

Filter

The Filters button opens a per-column filter bar. The available operators:

  • equals, not equal, greater than, greater or equal, less than, less or equal;
  • contains, does not contain, starts with, ends with;
  • is one of;
  • is NULL, is not NULL.

You combine conditions with "all" or "at least one".

The Filter in plain language field has the AI write the filters. See Assistants of the Tables tab.

The <> button shows the SQL query of the current view.

Edit data

Your changes are not applied one by one. They are queued, then applied together.

  1. Edit cells, add rows, delete some.
  2. A bar shows the number of pending changes.
  3. Preview: OpenDB shows the exact SQL statements that will run.
  4. Apply: everything runs in a single transaction. If one statement fails, nothing is changed.

An invalid value is flagged on the offending cell before anything is applied.

Add a row

The Add a row button offers two ways:

  • with a form: the row is checked and saved at once;
  • in the grid: the row joins the pending changes.

When the grid is read-only

  • The table has no primary key: OpenDB cannot point at one precise row, so no editing and no deleting.
  • You do not hold the UPDATE privilege on the table.

Row sheet

Open a row to see all its columns in a side panel. You can copy it as JSON or choose Ask the chat to open a conversation about it.

Operations on the table

The Table actions menu offers to:

  • rename the table;
  • duplicate it, with or without its rows;
  • empty it (TRUNCATE);
  • drop it;
  • import a CSV file;
  • export as CSV, JSON or SQL.

Each operation requires the matching privilege. See Import and export and Table designer.