/*==============================================================*/ /* Database name: FITBANK PHYSICAL DATA MODEL */ /* DBMS name: IBM DB2 UDB 5.x Common Server */ /* 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 -- fitbank201061005.log /*==============================================================*/ /* Table: TCUENTASENLEGAL */ /*==============================================================*/ alter table TCUENTASENLEGAL add JUZGADO VARCHAR(100); alter table TCUENTASENLEGAL add CPAIS VARCHAR(3); alter table TCUENTASENLEGAL add CPROVINCIA VARCHAR(3); alter table TCUENTASENLEGAL add CCIUDAD VARCHAR(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);