SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
create table t1 ( id int, name varchar ); create table t2 (id int, name varchar ); INSERT INTO t1 (id, name) VALUES (1, 'A'), (2, 'B'), (3, 'C'), (NULL, 'D'); INSERT INTO t2 (id, name) VALUES (1, 'one'), (2, 'two'), (4, 'four'); SELECT * FROM t1 LEFT JOIN t2 ON t1.id = t2.id;

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear