Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize | PHPize | SQLtest

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

A A A
Login    Share code      Blog   FAQ
Copy Format Clear
create table aluno( id_aluno int not null, ra int not null unique, nome varchar (100) not null, constraint PK_id_aluno primary key(id_aluno) ); create table prova ( id_prova int not null, nota decimal(3, 1), id_aluno INT not null, constraint pk_id_prova PRIMARY KEY(id_prova), constraint fk_id_aluno FOREIGN KEY (id_aluno) REFERENCES aluno(id_aluno) );

Stuck with a problem? Got Error? Ask AI support!

Copy Clear