SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
create table aluno( id_aluno int not null primary key auto_increment, ra int not null unique, nome varchar (100) not null, nota decimal(3,1) ); alter table aluno add UF char(2) not null CONSTRAINT CK_UF CHECK (uf in ('SP','RJ','MG')); insert into aluno (ra, nome, nota, uf) values (1234,'Glauce',9.9, 'SP'); insert into aluno (ra, nome, nota, uf) values (1235,'Josefina',10,'mg'); select * from aluno;
Stuck with a problem? Got Error? Ask ChatGPT!
Copy Clear