Hi! Could we please enable some services and cookies to improve your experience and our website?
No, thanks.
Okay!
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 client; -- 1. Создаем таблицу клиентов CREATE TABLE client ( id_client INT PRIMARY KEY, name VARCHAR(50) NOT NULL, table_number INT NOT NULL, order_list TEXT, number_phone VARCHAR(15) ); -- Удаляем существующие процедуры, если они есть DROP PROCEDURE IF EXISTS add_client; DROP PROCEDURE IF EXISTS get_all_clients; DROP PROCEDURE IF EXISTS find_client_by_table; DROP PROCEDURE IF EXISTS update_client_order; DELIMITER // CREATE PROCEDURE add_client( IN p_name VARCHAR(50), IN p_table_number INT, IN p_order_list TEXT, IN p_number_phone VARCHAR(15)) BEGIN INSERT INTO client (name, table_number, order_list, number_phone) VALUES (p_name, p_table_number, p_order_list, p_number_phone); SELECT 'Клиент добавлен успешно!' AS message; END // DELIMITER ;
SQL
Server:
MySQL 8.0
MySQL 8.0 Sakila (ReadOnly)
MySQL 9.3.0
MariaDB 11.4
MariaDB 11.8
MariaDB 10
MariaDB 10 Sakila (ReadOnly)
SQLite 3
SQLite 3 Preloaded
PostgreSQL 10 Bookings (ReadOnly)
PostgreSQL 13
PostgreSQL 14
PostgreSQL 15
PostgreSQL 16
PostgreSQL 17
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