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 t ( EmpID INT NOT NULL, NewVacationHours INT, ModifiedDate TIMESTAMP); INSERT INTO t values (1, 0, NULL); INSERT INTO t values (2, 0, NULL); INSERT INTO t values (3, 0, NULL); create TABLE Empl ( BusinessEntityID INT NOT NULL, VacationHours INT); INSERT INTO Empl values (1, 10); INSERT INTO Empl values (2, 20); INSERT INTO Empl values (3, 30); select NewVacationHours , e.VacationHours + 20, ModifiedDate FROM t, Empl AS e WHERE e.BusinessEntityID = EmpID; UPDATE t SET NewVacationHours = e.VacationHours + 20 FROM Empl AS e WHERE e.BusinessEntityID = EmpID; select * from t; select * FROM Empl AS pe INNER JOIN t AS pt ON pe.BusinessEntityID = pt.EmpID WHERE pe.BusinessEntityID > 2; DELETE pe FROM Empl AS pe INNER JOIN t AS pt ON pe.BusinessEntityID = pt.EmpID WHERE pe.BusinessEntityID > 2; select * from Empl; update pe set pe.BusinessEntityID = pe.BusinessEntityID + 100 FROM Empl AS pe INNER JOIN t AS pt ON pe.BusinessEntityID = pt.EmpID WHERE pe.BusinessEntityID <= 2; select * from Empl; update Empl set BusinessEntityID = BusinessEntityID + 100 FROM Empl AS pe INNER JOIN t AS pt ON pe.BusinessEntityID = pt.EmpID WHERE pe.BusinessEntityID <= 2; select * from Empl; drop table t; drop table empl;
SQL
Server:
MySQL 5.7
MySQL 5.7 Sakila (ReadOnly)
MySQL 8.0
MySQL 8.0 Sakila (ReadOnly)
MariaDB 11.5
SQLite 3
SQLite 3 Preloaded
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