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 ( id INTEGER PRIMARY KEY, val TEXT ) delete from tbl where id in (select source_tbl.id from tbl source_tbl left join tbl copy_tbl on source_tbl.val = copy_tbl.val and source_tbl.id > copy_tbl.id where copy_tbl.id is not null)

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

Copy Clear