|
Define que o(s) valor(es) da(s) coluna(s) em questão:
Seja(m) definido(s) previamente como não podendo ser NULOS.
Ocorrer�(�o) somente uma �nica vez.
Estar�(�o) presente(s) em um �ndice.
�������� Considere a tabela VENDEDOR, abaixo:
VEN_CPF
varchar(11)
not null |
VEN_NOME
varchar(20) |
VEN_UF
varchar(2) |
01234567890 |
BRUNO |
SP |
12345678901 |
MAURO |
CE |
23456789012 |
MARIA |
null |
null |
DIONE |
CE |
Poderia-se eleger a coluna VEN_CPF como Primary Key ou...
VEN_CODIGO
integer
not null |
VEN_CPF
varchar(11)
not null |
VEN_NOME
varchar(20) |
VEN_UF
varchar(2) |
1 |
01234567890 |
BRUNO |
SP |
2 |
12345678901 |
MAURO |
CE |
3 |
23456789012 |
MARIA |
null |
4 |
null |
DIONE |
CE |
Criar uma nova coluna VEN_CODIGO para torná-la Primary Key.
|