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 tbl as select * from generate_series(1,200000) g(x); create index on tbl(x) where x % 170 = 0; analyze tbl; explain(analyze) select count(*) from tbl where x % 170 = 0; explain(analyze) select count(*) from tbl; explain(analyze) select count(*) filter (where x % 170 = 0) from tbl;

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

Copy Clear