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
CREATE TABLE t AS SELECT * FROM generate_series(1,1000000) x(i); SELECT pg_size_pretty(pg_database_size(current_database())); CREATE INDEX t_idx ON t(i); SELECT pg_size_pretty(pg_database_size(current_database())); DROP INDEX t_idx; SELECT pg_size_pretty(pg_database_size(current_database()));

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

Copy Clear