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 customers ( id int primary key auto_increment, name varchar(128) ); create table products ( id int primary key auto_increment, name varchar(128) ); create table baskets ( id int primary key auto_increment, user_id int references customers(id), product_id int references products(id), price decimal(9, 2), amount decimal(6, 3) );

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

Copy Clear