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 ( id serial, a int ); insert into t(a) values (1),(1),(2),(2),(1),(1),(2),(3),(2),(4),(3); select * from t; select * from t left join t t1 on t.a = t1.a and t.id > t1.id; delete t.* from t /* left */ join t t1 on t.a = t1.a and t.id > t1.id /* where t1.id is not null */ ; select * from t;

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

Copy Clear