Conexão com banco

This commit is contained in:
2026-05-15 22:12:23 -03:00
parent 641747634a
commit 247b2f4576
4 changed files with 47 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;