show tables;
create table estudantes(
id_estudante int not null primary key auto_increment,
nome varchar(100) not null,
ra char(8) not null unique,
nota decimal(3,1) not null check(nota>=0 and nota<=10)
);
desc estudantes;
select * from estudantes;
insert into estudantes
values (75,'Belarmina','12345695',9.0);
insert into estudantes
values (null,'Beto','12345679',9.5),
(null,'Betina','12345680',7.5),
(null,'Josebete','12345681',6.5);
select * from estudantes;
update estudantes set nota=3.5
where id_estudante=1;
select * from estudantes;
delete from estudantes
where id_estudante=2;
select * from estudantes;