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 t1 (id int); insert into t1 values (1),(2),(3); create table t2 (category_id varchar(64)); insert into t2 values ('category_id=1'),('category_id=2'),('category_id=3'); select * from t1 join t2 on concat('category_id=', t1.id) = t2.category_id;

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

Copy Clear