SqlOtter

Browse and edit table data / Browse and find

Filter records with query conditions

Choose enabled field conditions, combine them with AND, and query matching records from the database.

Where to open it

Table Content → clear the Content Filter input → SQL Query Filter icon, or focus the empty input and press Ctrl+Shift+Enter.

Default shortcuts

The same chord has different uses in the empty content input and SQL Filter dialog; check focus first.

Default shortcuts
ActionWindows / LinuxmacOSFocus and effect
Open SQL query conditionsCtrl+Shift+Enter⌘+Shift+EnterClear and focus Content Filter; nonempty input can take an expression or SQL-query path.
Add a condition rowCtrl++ / Ctrl+Shift++⌘++ / ⌘+Shift++Add conditions inside SQL Filter, separately from changing data records.
Remove selected condition rowsDelete / Ctrl+-Delete / ⌘+-Remove only condition definitions inside SQL Filter.
Apply conditionsCtrl+Shift+Enter / Ctrl+Shift+Return⌘+Shift+Enter / ⌘+Shift+ReturnAccept enabled conditions inside SQL Filter, which can issue a database read.
Cancel condition editingEscEscClose condition editing and handle the unsaved-change prompt when present.
  • Settings → Shortcuts shows configurable bindings; customized keys take precedence. Fixed dialog keys and mouse gestures may be managed by their own controls.
  • On macOS, ⌘ means Command and ⌥ means Option. Function keys may require Fn. Delete means forward delete (often Fn+⌫ on a compact Mac keyboard); use the menu when Insert is unavailable.

Before you start

Use a relational table with read permission and loaded field metadata. Check the active connection, database/schema, and table. Choose fields and fictional values that exist in your demo data.

Follow these steps

  1. Open the intended table and wait for its fields to load. Empty Content Filter, then open SQL Query Filter.
  2. Keep a condition's checkbox checked, choose its Field and Operator, and enter a Value from your demo data. The screenshot uses id > 290 and code = 222. Enter text without surrounding SQL quotes. IS NULL and IS NOT NULL disable the Value cell.
  3. Use Add Condition (Ctrl++) for more rows. Every checked condition is combined with AND. Uncheck a row to omit it from this query, or select a condition row and use Delete Selected (Ctrl+-) to remove it from the dialog.
  4. Click OK to run the query. Cancel closes without applying the edited conditions and may ask whether to discard changes.
  5. Check the returned rows and query feedback. The captured example shows id 291 and code 222 in one returned row. Composite Query:2 conditions counts the two enabled conditions; click the tag to reopen them for editing.
  6. To return to ordinary table browsing, click × beside the query-condition tag. This starts a reload of the current table page; wait for it to finish and check the page and returned rows.
Complete SqlOtter SQL Query Filter dialog with checked id > 290 and code = 222 conditions, Field, Operator, and Value columns, Add Condition, Delete Selected, Cancel, and OK; the demo table is visible behind it.
Product-owner capture from 2026 Build 1010. Both condition rows are enabled: id > 290 and code = 222. The complete dialog and demo table context are preserved. The source combines these rows with AND; this image shows the configuration before OK, with the earlier table page visible behind it. Historical screenshot; UI icons have been updated.

Example

Field  Operator  Value
id     >         290
code   =         222

Both checked: id > 290 AND code = 222

What to expect

After a successful query, matching records replace the loaded grid. With id > 290 AND code = 222, the captured result is one row: id 291, code 222. Composite Query:2 conditions counts enabled conditions, while Query executed successfully, 1 rows returned reports the returned-row count. The pager still shows 295 Rows from the earlier table load; this is not the filtered total.

SqlOtter demo table new_table7_copy1_copy2_copy1 with Composite Query:2 conditions and its × control, one row showing id 291 and code 222, and the retained pager showing 295 Rows, page 1, and page size 100.
After applying id > 290 AND code = 222, the table shows id 291 and code 222. Composite Query:2 conditions counts the enabled conditions. The pager retains 295 Rows, page 1, and page size 100 from the ordinary table view; it does not report this query's returned-row count. Historical screenshot; UI icons have been updated.
SqlOtter status message: Query executed successfully, 1 rows returned.
A separate crop from the same capture preserves the feedback: Query executed successfully, 1 rows returned. This reports one returned row; the query tag separately counts two conditions.

Scope and limits

  • The dialog offers =, !=, >, <, >=, <=, LIKE, NOT LIKE, IN, NOT IN, IS NULL, and IS NOT NULL. IN / NOT IN values are comma-separated; LIKE patterns use SQL wildcards such as % and _. Numeric-looking input is treated as a number; other input is quoted text. Compare values against the field's type; matching and case sensitivity depend on the database and collation.
  • This dialog combines enabled rows with AND and has no OR selector or condition-group controls. Use the SQL editor for an explicit OR query; pipe-separated expressions entered in Content Filter do not preserve their logical connectors when converted to dialog rows.
  • The current development query path fetches all returned rows without applying the table page-size limit. In the captured result, the pager retains 295 Rows, page 1, and page size 100 from the earlier table load, while query feedback reports one returned row. Changing pages or refreshing uses ordinary table loading and does not reapply these conditions; reapply the query before relying on a filtered scope.
  • SQL query conditions choose records in the database. Content highlights mark text in loaded cells; column-name filtering changes which columns are visible. Their tags, match counts, and inputs have separate purposes. Emptying Content Filter does not clear an active query-condition tag.
  • Use the query tag's × to clear and reload. Accepting a dialog with no enabled conditions is not a reliable clear-and-reload action. Previously entered conditions can remain available when reopening the dialog.
  • The condition builder uses the active SQL dialect for identifier quoting. Confirm operator and value behavior on your relational engine. Redis keyspaces reject this action; this walkthrough does not establish MongoDB collection filtering.

If something goes wrong

  • If no rows are returned, check enabled conditions, AND scope, field types, NULL operators, and the active database/table. Read the database error or query feedback before interpreting the grid.
  • If the icon does not open the condition dialog, clear Content Filter first. Non-empty text can take a direct SELECT, expression, or highlighting path.
  • If rows change after a page jump or refresh while the query tag remains, reopen the tag and click OK to run the conditions again. Check the returned-row feedback rather than treating the pager as a filtered total.