SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
-- Hint: use Ctrl+Enter for SQL autocomplete create table icons (id int, publication int, icon_id int); insert into icons values (1, 1, 1), (1, 1, 2); with recursive free_icons (id) as ( select 1 union all select id+1 from free_icons where id <= 40 ) select * from free_icons where not exists ( select icon_id from icons where icon_id = free_icons.id ) limit 1;
Stuck with a problem? Got Error? Ask ChatGPT!
Copy Clear