Your whole semester on one page! Register free, add your course, year & semester — and get your syllabus, notes, question banks & PYQs in one place. Register here
UniversityAcademy app icon
Get the free Android app — AKTU notes, question banks, PYQs & syllabus on your phone
GET IT ONGoogle Play

Online SQL Compiler (SQLite)

Practise SQL online - create tables, insert rows and run SELECT queries on a fresh SQLite database.

main.sql
Input (stdin)
Output
Press Run to see the output here.
Your code is sent to a secure sandbox to run, then discarded. Don't paste passwords or private data. Shortcut: Ctrl + Enter to run.

About the SQL (SQLite) compiler

Each run starts with an empty database, so include your CREATE TABLE and INSERT statements in the script. Great for DBMS lab practice: joins, group by, subqueries and constraints.

How to use it

  1. Write or paste your SQL (SQLite) code in the editor.
  2. If your program reads data, type it in the Input box - one value per line.
  3. Press Run (or Ctrl + Enter).
  4. Read the result - or the error message with the line number - in the Output panel.

Good to know

  • The database is created fresh on every run.
  • Dot-commands such as .tables are not available; use SQL statements.

Frequently asked questions

Yes. The SQL (SQLite) compiler is completely free. There is nothing to install and no sign-up is needed.

Type or paste your code in the editor and press the Run button (or Ctrl + Enter). If your program reads input, type the values in the Input box first.

Yes. Put everything your program will read - one value per line, or separated by spaces - in the Input box. The program reads it as if you typed it on the keyboard.

Your code is kept in your own browser (local storage) so it is still there when you come back on the same device. It is not uploaded to your account. Use the Download button to keep a copy.

Yes. It is meant for learning, practising lab programs and quickly testing ideas. For exams and assignments follow your institution's rules.

Each run is limited to a few seconds of CPU time and a modest amount of memory, and there is no network access. Very heavy programs may stop with a time-limit message.

More online compilers

Studying for AKTU?

Get notes, question banks and previous year papers for your subjects.

Find SQL (SQLite) notes