Online SQL Editor

About this SQL compiler

This free online SQL editor lets you write and run SQL queries in your browser. Use it to practise CREATE TABLE, INSERT, SELECT, WHERE and JOIN statements without installing a database.

How to use the online SQL compiler

  1. Write or paste your SQL code in the editor. Sample code is already loaded.
  2. Click Run.
  3. Read the result in the black panel. Errors from your code appear there too.

SQL compiler FAQs

Can I create my own tables?

Yes. Use CREATE TABLE and INSERT in the same script, then query the data with SELECT.

Will my data be saved between runs?

Treat each run as a fresh script. Create your tables and data in the same script before you query them.

Do I need to install a database?

No. Your queries run on a remote server and the results appear next to the editor.

Other online compilers