Commit apirest

This commit is contained in:
Simon Gonçalves Costa
2026-05-22 19:34:21 -03:00
parent 322f5f37dd
commit 7bf610845a
6 changed files with 84 additions and 0 deletions
+16
View File
@@ -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;