Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize Online / PHPize Online  /  SQLtest Online

A A A
Login    Share code      Blog   FAQ

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

Copy Format Clear
create table Products ( product_id int, region int, name varchar(64), unique key (product_id, region) ); insert into Products values (10, 20, 'P1020') on duplicate key update name = values(name); insert into Products values (10, 20, 'New Name') on duplicate key update name = values(name); select * from Products;

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

Copy Clear