Alteração da Tabela via sql
19/07/2008
0
pessoal tenho q criar uma instrução para alterar uma tabela, tenho q fazer um determinado campo ser not null e ter um campo default, segue abaixo como estou tentando mais nao ta dando certo
uso SQL 2000
uso SQL 2000
ALTER TABLE perfil ALTER COLUMN bnt_72 Char(1) NOT NULL DEFAULT ´0´
Cd.wagner.sena
Curtir tópico
+ 0
Responder
Posts
30/07/2008
Flasp2000
UTILIZE DESTA FORMA:
ALTER TABLE perfil ALTER COLUMN bnt_72 Char(1) NOT NULL DEFAULT ´0´ WITH VALUES
ALTER TABLE perfil ALTER COLUMN bnt_72 Char(1) NOT NULL DEFAULT ´0´ WITH VALUES
Responder
Clique aqui para fazer login e interagir na Comunidade :)