Comando SQL - muitos em um ... resumindo comandos
Tenho os seguintes comandos:
ALTER TABLE LISTA
ADD ID INTEGER NOT NULL;
alter table LISTA
alter ID position 1;
alter table LISTA
alter CONTROLE_FK position 2;
alter table LISTA
alter MATERIAL_FK position 3;
alter table LISTA
alter QUANTIDADE position 4;
alter table LISTA
alter ENTREGA position 5;
alter table LISTA
alter USUARIO position 6;
alter table LISTA
add constraint PK_LISTA
primary key (ID);
COMO FAÇO PARA QUE TODOS FIQUEM UM APENAS?
OBRIGADO
ALTER TABLE LISTA
ADD ID INTEGER NOT NULL;
alter table LISTA
alter ID position 1;
alter table LISTA
alter CONTROLE_FK position 2;
alter table LISTA
alter MATERIAL_FK position 3;
alter table LISTA
alter QUANTIDADE position 4;
alter table LISTA
alter ENTREGA position 5;
alter table LISTA
alter USUARIO position 6;
alter table LISTA
add constraint PK_LISTA
primary key (ID);
COMO FAÇO PARA QUE TODOS FIQUEM UM APENAS?
OBRIGADO
Jonnymarques
Curtidas 0
Respostas
Vanius
03/02/2004
Fera,
tenho o mesmo problema q vc. A solução q encontrei foi executar um por um...
abraços,
Vanius
tenho o mesmo problema q vc. A solução q encontrei foi executar um por um...
abraços,
Vanius
GOSTEI 0
Paulo_amorim
03/02/2004
Olá
se vc fizer:
ALTER TABLE lista
ADD ID INTEGER NOT NULL FIRST
ele poe em primeiro...
AtÉ+
se vc fizer:
ALTER TABLE lista
ADD ID INTEGER NOT NULL FIRST
ele poe em primeiro...
AtÉ+
GOSTEI 0
Jonnymarques
03/02/2004
Olá
se vc fizer:
ALTER TABLE lista
ADD ID INTEGER NOT NULL FIRST
ele poe em primeiro...
AtÉ+
Gostei da dica.
Mas ainda quero saber como colocar uma lista de comandos que façam diversas tarefas no SQL.
Desta maneira, caso eu precise modificar muitas coisas em um banco de dados é só aplicar esta lista de funções.
Obrigado
GOSTEI 0