Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CREATE TABLE clientes
- {
- matricula serial PRIMARY KEY, /* "serial" gera automaticamente o valor da variável, só é possível existir um serial por tabela e este não pode ser de uma Foreign Key */
- nome VARCHAR(30) NOT NULL,
- endereco VARCHAR(50) NOT NULL,
- CONSTRAINT fkCidade FOREIGN KEY(cidade) REFERENCES cidade(codigo)
- }
Advertisement
Add Comment
Please, Sign In to add comment