SQLize
Online
/
PHPize Online
/
SQLtest Online
A
A
A
Share
Donate
Blog
Popular
Donate
A
A
A
Share
Blog
Popular
SQLize.online is a free online SQL environment for quickly running, experimenting with and sharing code.
You can run your SQL code on top of the most popular RDBMS including MySQL, MariaDB, SQLite, PostgreSQL, Oracle and Microsoft SQL Server.
SQL code:
Upload
Copy
Format
Clear
CREATE TABLE cars ( id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, model VARCHAR(32) ); CREATE TABLE auctions ( id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, car_id INT(11) NOT NULL, active INT(1) UNSIGNED NOT NULL, type ENUM('24h', 'instant'), FOREIGN KEY (car_id) REFERENCES cars (id) ON DELETE CASCADE ); INSERT INTO cars (id, model) VALUES (1, "Ford Econovan 2012"), (2, "BMW X3 2.5 2011"), (3, "Mercedes B-Klasse 170 2011"), (4, "Porsche Panamera 4s 2009"), (5, "Mercedes Citan 112 2017"), (6, "Volkswagen Golf VII 1.4 2013"), (7, "Volkswagen Passat 1.6 1997"), (8, "HONDA CR-V 2.0 2003"), (9, "Mazda RX-7 1996"), (10, "Land Rover Discovery 3.5 2008") ; INSERT INTO auctions (car_id, type, active) VALUES (1,'instant',1),(1,'instant',0),(2,'instant',0),(1,'instant',1),(1,'instant',0),(3,'instant',0),(5,'instant',0),(6,'instant',0),(3,'instant',0),(10,'instant',0),(8,'instant',0),(3,'instant',0),(2,'instant',0),(3,'instant',0),(1,'instant',1),(4,'instant',0),(1,'instant',1),(6,'instant',1), (1,'24h',1),(1,'24h',1),(3,'24h',1),(1,'24h',1),(2,'24h',1),(5,'24h',1),(4,'24h',1),(6,'24h',1),(1,'24h',1),(9,'24h',1),(10,'24h',1),(1,'24h',1),(9,'24h',1),(1,'24h',0),(9,'24h',0),(7,'24h',0),(5,'24h',1),(4,'24h',1),(6,'24h',1),(1,'24h',1),(9,'24h',1),(10,'24h',1),(1,'24h',1),(9,'24h',1),(1,'24h',0),(9,'24h',0),(7,'24h',0),(9,'24h',0),(4,'24h',0),(9,'24h',0),(5,'24h',0),(9,'24h',0),(4,'24h',0),(9,'24h',0),(5,'24h',0),(9,'24h',0),(3,'24h',0),(5,'24h',0),(1,'24h',1) ;
SQL
Server:
MariaDB 11.4
MariaDB 11.5
MariaDB 10
MariaDB 10 Sakila (ReadOnly)
MySQL 5.7
MySQL 5.7 Sakila (ReadOnly)
MySQL 8.0
MySQL 8.0 Sakila (ReadOnly)
SQLite 3
PostgreSQL 10 Bookings (ReadOnly)
PostgreSQL 11
PostgreSQL 12
PostgreSQL 13
PostgreSQL 14
PostgreSQL 15
MS SQL Server 2017
MS SQL Server 2019
MS SQL Server 2022
MS SQL Server 2022 AdventureWorks (ReadOnly)
Firebird 4.0
Firebird 4.0 (Employee)
Oracle Database 19c (HR)
Oracle Database 21c
Oracle Database 23c Free
SOQOL
Version
ER Diagram
Preserve result
Stuck with a problem?
Got Error?
Ask ChatGPT!
Result:
Copy
Clear