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 PRODUTOS( id_produto int not null primary key auto_increment, categoria varchar(100) not null, marca varchar(100) not null, preco decimal (6,2) not null, tamanho int not null, genero varchar(30) not null, descricao varchar(200) ); create table ESTOQUE( id_estoque int not null primary key auto_increment, id_produto int not null, quantidade_estoque int not null foreign key (id_produto) references PRODUTOS (id_produto) );

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

Copy Clear