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
DROP TABLE IF EXISTS `Сотрудник%ПЕРС`; CREATE TABLE `Сотрудник%ПЕРС` ( `Код` CHAR (10) NOT NULL PRIMARY KEY , `Паспорт` CHAR (10) NOT NULL UNIQUE , `ФИО` VARCHAR (50) NOT NULL , `Сведения` VARCHAR (150) NOT NULL , `Слк_ДОЛ` CHAR (3) NOT NULL DEFAULT "ДОЛ" , `Код_ДОЛ` CHAR (3) NOT NULL , `Слк_ПОД` CHAR (3) NOT NULL DEFAULT "ПОД" , `Код_ПОД` CHAR (3) NOT NULL , CONSTRAINT `ВК1\СОТ^СПР` FOREIGN KEY (`Слк_ДОЛ`, `Код_ДОЛ`) REFERENCES `Справка+` (`Слк`, `Код`) , CONSTRAINT `ВК2\СОТ^СПР` FOREIGN KEY (`Слк_ПОД`, `Код_ПОД`) REFERENCES `Справка+` (`Слк`, `Код`) ); INSERT INTO `Сотрудник%ПЕРС` VALUES ("001-П", "345678", "Петров А. А.", "чл. КПСС", DEFAULT, "про", DEFAULT, "АСУ"), ("002-П", "456789", "Боширов Р. Р.", "б/п", DEFAULT, "доц", DEFAULT, "АСУ"), ("099-В", "567890", "Исаев М. М.", "ВЛКСМ", DEFAULT, "лаб", DEFAULT, "АСУ"); SELECT "`Сотрудник%ПЕРС` Table Content:" FROM `Сотрудник%ПЕРС` WHERE 1=0; SELECT * FROM `Сотрудник%ПЕРС`;
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