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 extension pgcrypto; -- Создание функции для шифрования CREATE OR REPLACE FUNCTION asymmetric_encrypt(data text, public_key text) RETURNS text AS $$ BEGIN RETURN encode(pgp_pub_encrypt_bytea(data::bytea, public_key::bytea, 'compress-algo=1, cipher-algo=aes256'), 'escape'); END; $$ LANGUAGE plpgsql; -- Создание функции для расшифровки CREATE OR REPLACE FUNCTION asymmetric_decrypt(encrypted_data text, private_key text) RETURNS text AS $$ BEGIN RETURN pgp_pub_decrypt_bytea(decode(encrypted_data, 'escape')::bytea, private_key::bytea)::text; END; $$ LANGUAGE plpgsql; create table test1 (id serial, tex1 text); insert into test1 (tex1) values (asymmetric_encrypt('text_text__text', ' OyhldCT7TSAA2CY+SZCYVP6oEa9unnjeHryZ43zvCGJ9PL6g2gDVE771cbKDPjs/ 5fDMOLTurgefxwvB5CABjnR8ecBhuaghxYNG+f5o7cJVHCL57sFvFxc8H/UUUzH4 RuoLoW1iwwYVVu4KuQENBGVOBU8BCAC78pi2nAeRAAIWxmhcGZGQi2nUau4uJUuN a3xbs+bDwxILTwsg+Sek9Zb4/+UOGabs2X9JWCE5gk5Q1kBFXgKuYJ7B2+sMJE5j Yt0sskpXMVX6HqOAVneMPTURdmO8FKpIaxoYjGTCKedmEgneiz9mRG/WAEx98vfB KeVI6NWM5C82XGz+TNiXhY77MrnP6a4tATia58UyUBv3eZi9nbyKqn+MEElcn63t 7lSvKyr5+dLkTnY1b8tPAL/7LgETAzk4F+nuDUlUSxzu6nsHizQ5S/8YOn7sWc0Q yNKfVO7NhJm55g0EMIOYg2GsIDuDEBG1+uLoJCcPwHM7YNK3AxzDABEBAAGJAR8E '))
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
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