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
ALTER TABLE inquiries2024 DROP COLUMN web_id; ALTER TABLE inquiries2025 DROP COLUMN web_id; CREATE TABLE attachments2025 ( id integer NOT NULL PRIMARY KEY AUTOINCREMENT, inquiry_id integer NOT NULL, filename varchar(250) NOT NULL, description varchar(250) ); CREATE TABLE attachments2026 ( id integer NOT NULL PRIMARY KEY AUTOINCREMENT, inquiry_id integer NOT NULL, filename varchar(250) NOT NULL, description varchar(250) ); CREATE TABLE documents2026 ( id integer NOT NULL PRIMARY KEY AUTOINCREMENT, fund_num varchar(25) NOT NULL, fund_name varchar(250), opis varchar(50), unit varchar(50), lists varchar(50), inquiry_id smallint NOT NULL ); CREATE TABLE inquiries2026 ( id integer NOT NULL PRIMARY KEY AUTOINCREMENT, reg_id integer NOT NULL, reg_date date NOT NULL, inquiry_type integer NOT NULL DEFAULT 1, source_id integer NOT NULL DEFAULT 1, subject varchar(255) NOT NULL, year_birth varchar(50), topic_id integer NOT NULL, content varchar(500), declarant varchar(255) NOT NULL, declarant_contact varchar(255), status_id integer NOT NULL, out_num varchar(50), out_date date, address varchar(255), phone varchar(50), notes varchar(255), control integer NOT NULL DEFAULT 0, due_days integer DEFAULT NULL, result_id integer NOT NULL DEFAULT 0, result_date date, user_id integer, sentby_id integer, price numeric(10,2), docs_count integer, used_count integer, copies_count integer, lists_count integer, registar_id smallint, "count" smallint NOT NULL DEFAULT 1, notified smallint NOT NULL DEFAULT 0, template_id smallint, prepaid numeric(9,2), due_date date NOT NULL, state_part smallint NOT NULL DEFAULT 0, division_code varchar(25) DEFAULT NULL, ex_note varchar(250) ); CREATE TABLE attachments2027 ( id integer NOT NULL PRIMARY KEY AUTOINCREMENT, inquiry_id integer NOT NULL, filename varchar(250) NOT NULL, description varchar(250) ); CREATE TABLE documents2027 ( id integer NOT NULL PRIMARY KEY AUTOINCREMENT, fund_num varchar(25) NOT NULL, fund_name varchar(250), opis varchar(50), unit varchar(50), lists varchar(50), inquiry_id smallint NOT NULL ); CREATE TABLE inquiries2027 ( id integer NOT NULL PRIMARY KEY AUTOINCREMENT, reg_id integer NOT NULL, reg_date date NOT NULL, inquiry_type integer NOT NULL DEFAULT 1, source_id integer NOT NULL DEFAULT 1, subject varchar(255) NOT NULL, year_birth varchar(50), topic_id integer NOT NULL, content varchar(500), declarant varchar(255) NOT NULL, declarant_contact varchar(255), status_id integer NOT NULL, out_num varchar(50), out_date date, address varchar(255), phone varchar(50), notes varchar(255), control integer NOT NULL DEFAULT 0, due_days integer DEFAULT NULL, result_id integer NOT NULL DEFAULT 0, result_date date, user_id integer, sentby_id integer, price numeric(10,2), docs_count integer, used_count integer, copies_count integer, lists_count integer, registar_id smallint, "count" smallint NOT NULL DEFAULT 1, notified smallint NOT NULL DEFAULT 0, template_id smallint, prepaid numeric(9,2), due_date date NOT NULL, state_part smallint NOT NULL DEFAULT 0, division_code varchar(25) DEFAULT NULL, ex_note varchar(250) );
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