Online SQL compiler
Run SQL online free, no sign-up: create tables, insert rows and run MySQL-style SELECT, JOIN, GROUP BY and window-function queries, with results as tables.
How do I run SQL code online?
This is an online SQL compiler for MySQL-style queries: create your tables and rows in the Tables box, write your queries in the editor and press Run. Every SELECT prints its result as a table, and an error says which statement failed and why — free, with no sign-up, nothing stored.
How it works
- Create your tables. Put the CREATE TABLE and INSERT statements in the Tables box. They run first, on a fresh database every time, so nothing from an earlier run is left over.
- Write your queries. In the editor, one or more statements each ending with a semicolon — SELECT with JOIN, GROUP BY, subqueries and window functions, or an UPDATE followed by the SELECT that shows it.
- Run it. Press Run or Ctrl+Enter. Each result comes back as a table with its column names; an error names the statement that failed. The first run without an account asks a quick check that you are a person.
Who it is for
Anyone writing SQL who wants it run now: a student checking a lab program or an exam answer, someone on a machine where nothing can be installed, or a learner trying SQL before setting it up.