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
-- columns are the same, but the order is important create table x (a int2, b int8, c int2); create table y (a int8, b int2, c int2); insert into x select 0, 0, 0 from generate_series(1,100000); insert into y select 0, 0, 0 from generate_series(1,100000); select pg_size_pretty(pg_total_relation_size('x')), pg_size_pretty(pg_total_relation_size('y'));

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

Copy Clear