SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
create table tbl(id int, x text); insert into tbl values (4, 'abc'); explain(analyze) select coalesce((SELECT id FROM tbl WHERE x = 'abc'), 1); explain(analyze) SELECT id FROM tbl WHERE x = 'abc' UNION SELECT 1 ORDER BY id DESC LIMIT 1;

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear