Alter Table. Como fazer?
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)
Alter Table Setor Drop Codigo, add codigo integer not null
constraint PK_Setor Primary Key(cod)

Anonymous
Curtidas 0