SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
CREATE TABLE tt ( id_ integer, value_ text ); INSERT INTO tt values (100, '566'), (101, '567'), (null, '596'), (104, null); SELECT * FROM tt; select * from tt where id_ in (100, null); select * from tt where coalesce(id_,99) in (100, 99); select * from tt where value_ between 100 and 567; select * from tt where value_ like '%6%'; select count(*) from tt; --select count(distinct *) from tt; select count(id_, value_) from tt;
Stuck with a problem? Got Error? Ask ChatGPT!
Copy Clear