A real database inside the browser
The page spins up a lightweight engine with in-memory storage, so self-created tables vanish on refresh and sample datasets reset. Four presets ship — employees and departments, orders and products, students and grades, books and loans — plus a custom build option. Because the engine is local, a bad statement errors out without touching production, which makes it far safer than experimenting on a live server.
Steps
- Pick a dataset or choose custom build.
- Write DDL and inserts in the initialisation box, statements separated by semicolons.
- Write the query, execute, and read the result grid.
- Set the row limit and the label used for nulls.
- Export CSV or JSON, reset the database, or reopen history.
Three things easy to miss
Nulls equal nothing, so filtering needs IS NULL; a comparison against null evaluates unknown and drops whole rows silently. Aggregates must pair with GROUP BY, or ungrouped columns collapse into one row that looks plausible but is wrong. Implicit string-to-number coercion differs by engine — some convert, some error — which is where cross-engine migrations break.
Reading the result grid
Columns and row counts appear, with overflow truncated and flagged. Multi-statement runs show each result separately, and the last statement may be DDL with no grid at all. Stability requires ORDER BY; default order is not guaranteed, so the same query can differ between runs. Decimals follow the data, and floating arithmetic famously yields 0.1 plus 0.2 not equal to 0.3, which is why money belongs in fixed-point or integer cents.
Common problems
Missing semicolons break concatenated statements. Case-sensitive engines reject users when the table is Users. Reserved words used as column names need quoting. Forgotten GROUP BY flattens aggregates. Single quotes are standard for strings while double quotes mean identifiers in some engines. And CSV exported as UTF-8 opens as mojibake when double-clicked in Excel, which needs the import wizard.
Where this playground stops:Performance testing at production scale is out — an in-memory engine plans and indexes differently. Transactions and concurrency isolation do not exist here. Sensitive data never belongs in a browser tool regardless of local-processing claims. And dialect questions, such as how a function differs between MySQL and PostgreSQL, need verification on the real database.