Mylla / first-project-eng

Projeto de Engenharia de Software
2 stars 1 forks source link

Adicionar colunas na tabela Adm_admistrador #6

Open GianeFerreira opened 11 years ago

GianeFerreira commented 11 years ago

Adicionar as colunas "adm_nm_completo" e "adm_tp_usuario" na tabela adm_administrador.

GianeFerreira commented 11 years ago

Script Utilizado:

ALTER TABLE adm_administrador ADD adm_nm_completo varchar(100) not null AFTER adm_id_pessoa; ALTER TABLE adm_administrador ADD adm_tp_usuario char(1) not null AFTER adm_password;

GianeFerreira commented 11 years ago

UPDATE adm_administrador SET adm_nm_completo = 'Camila Santos' WHERE adm_user = 'csantos'; UPDATE adm_administrador SET adm_nm_completo = 'Patricia Neris' WHERE adm_user = 'psantana'; UPDATE adm_administrador SET adm_nm_completo = 'Giane Ferreira' WHERE adm_user = 'gpereira';

GianeFerreira commented 11 years ago

UPDATE adm_administrador SET adm_tp_usuario = 'A' WHERE adm_user = 'csantos'; UPDATE adm_administrador SET adm_tp_usuario = 'A' WHERE adm_user = 'psantana'; UPDATE adm_administrador SET adm_tp_usuario = 'A' WHERE adm_user = 'gpereira';

GianeFerreira commented 11 years ago

ALTER TABLE ssambd.adm_administrador DROP COLUMN adm_nm_completo;