Alter Table. Como fazer?

Delphi

09/02/2003

Preciso modificar um campo em minha tabela, e não estou conseguindo. O campo atual aceita null, e preciso fazer com q ele não aceite mais e depois transformá-lo em chave primária. eu faço assim:
Alter Table Setor Drop Codigo, add codigo integer not null
constraint PK_Setor Primary Key(cod)


Anonymous

Anonymous

Curtidas 0
POSTAR