Loading SQL...
Starting SQL sandbox...
workspace.sql
1
2
3
4
5
6
7
8
Output
Input (stdin)
Interactive sandbox awaiting execution...
SQLSQLite 3Live Cloud Sandbox

Online SQL Compiler & Runner

Interactive online SQL runner powered by SQLite. Create tables, insert data, join relations, and view query output formatted in CSV/tabular format. With code.thecoder.in, you can write, compile, and execute SQL code directly inside your web browser. No local SDKs, compilers, or configuration required.

Sub-Second Execution
Powered by high-performance serverless containers with pre-warmed compilers for near-instant execution feedback.
Standard Input (stdin)
Supply custom input datasets, simulate user prompts, and test multi-line edge cases with the interactive stdin tab.
Isolated & Secure
All code executes in an isolated private VPC container without network access, keeping your tests completely sandboxed.

SQL Quick Syntax Reference

Create & Insert

Create tables and insert tuples.

CREATE TABLE t (id INT, val TEXT);
INSERT INTO t VALUES (1, "Sample");

Select & Filter

Filter and sort records.

SELECT * FROM t
WHERE id > 0 ORDER BY id DESC;

Update & Delete

Use WHERE clause to specify which record(s) to update or delete.

UPDATE t SET val = "new" WHERE id = 1;
DELETE FROM t WHERE id = 2;

Frequently Asked Questions (SQL Compiler)

Can I run multiple statements?

Yes, separate each statement with a semicolon (;). The runner executes table creations and returns output from your SELECT query.