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 t1(id numeric); create table t2(id numeric); insert into t1 select * from generate_series(1, 100, 1) g(x); insert into t2 select * from t1; create view v1 as select * from t2; select * from v1; alter table t2 rename to t2_old; create view v2 as select * from t1; create or replace view v1 as select * from v2; select * from v1;

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

Copy Clear