Commit apirest
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#Criar tabela produto
|
||||
create table produto (
|
||||
id int auto_increment primary key,
|
||||
nome varchar(100) not null,
|
||||
preco decimal(10,2) not null,
|
||||
estoque int not null
|
||||
);
|
||||
|
||||
#Carga incial do banco
|
||||
insert into produto (nome,preco,estoque)
|
||||
values ('Bola',12.50,10);
|
||||
insert into produto (nome,preco,estoque)
|
||||
values ('PS5',3950.50,5);
|
||||
|
||||
#Exemplo de consulta
|
||||
#select * from produto;
|
||||
Reference in New Issue
Block a user