Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize | PHPize | SQLtest

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

A A A
Login    Share code      Blog   FAQ
Copy Format Clear
\timing CREATE TABLE test_table ( test_id SERIAL PRIMARY KEY, test_string VARCHAR(255) NOT NULL, test_account_id INTEGER NOT NULL ); CREATE UNIQUE INDEX idx_test_table_on_account_id_and_string ON test_table (test_account_id, test_string); INSERT INTO test_table (test_id, test_string, test_account_id) VALUES (1, 'a', 1); SELECT 1 FROM test_table WHERE test_account_id = 1 AND test_string = repeat('<', 65536);

Stuck with a problem? Got Error? Ask AI support!

Copy Clear