progredes20261/apirest/scripts.sql

18 lines
381 B
MySQL
Raw Permalink Normal View History

2026-05-22 22:44:04 +00:00
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 inicial do banco
insert into produto (nome,preco,estoque)
values ('Bola',12.50,10);
#Exemplo de consulta
insert into produto (nome,preco,estoque)
values ('PS5',3950.50,5);
#select * from produto;
#delete from produto where id