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 a (val varchar(100) not null ); insert into a values ('1'); insert into a values (''); select * from a; create table b (id int, val varchar(100)); insert into b values (1, ''); insert into b values (2, null); insert into b values (3, 'v3'); select id, val as "val is null" from b where val is null; select id, val as "val = null" from b where val=''; select id, val as "val is not null" from b where val is not null;

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

Copy Clear