/*==============================================================*/ /* Database name: Database */ /* DBMS name: ORACLE Version 10g */ /* Created on: 26/08/2009 14:11:14 PM */ /*==============================================================*/ -- SQL script that update fitBank squema -- To run this script from the SQL Plus, perform the following steps: -- 1. connect to the database -- 2. set define character to ! -- "set define !" -- 3. issue the command "@ " -- where represents the name of this script spool fitbank201061005.log /*==============================================================*/ /* Table: TCUENTASENLEGAL */ /*==============================================================*/ alter table TCUENTASENLEGAL add ( JUZGADO VARCHAR2(100), CPAIS VARCHAR2(3), CPROVINCIA VARCHAR2(3), CCIUDAD VARCHAR2(6)); comment on column TCUENTASENLEGAL.JUZGADO is 'Nombre del juzgado en el que se realiza el juicio de la demanda'; comment on column TCUENTASENLEGAL.CPAIS is 'Codigo del pais de la demanda'; comment on column TCUENTASENLEGAL.CPROVINCIA is 'Codigo de la provincia de la demanda'; comment on column TCUENTASENLEGAL.CCIUDAD is 'Codigo de ciudad de la demanda'; alter table TCUENTASENLEGAL add constraint FKCTAENLEGCIU foreign key (CPAIS, CPROVINCIA, CCIUDAD) references TCIUDADESID (CPAIS, CPROVINCIA, CCIUDAD); spool off