Tables Previous topic Chapter index Next topic

ACTIVIDADES

 

Description

(There is no description for table ACTIVIDADES)

 

Fields

PK

FK

Field

Domain

Type

NN

Default

Description

 

CODIGO

 

CHAR(5)

 

 

 

 

NOMBRE

 

CHAR(80)

 

 

 

CODTIPORETENCION

 

CHAR(5)

 

 

 

Triggers

(There are no triggers for table ACTIVIDADES)

 

Indices

Index

Fields

Active

Unique

Order

FK_ACTIVIDADES_1

CODTIPORETENCION

ASC

PK_ACTIVIDADES

CODIGO

ASC

 

References

Table

Foreign Key

Fields

FK Field

Delete Rule

Update Rule

TIPORETENCIONES

FK_ACTIVIDADES_1

CODTIPORETENCION

CODIGO

NO ACTION

CASCADE

 

Referenced By

Table

Foreign Key

Fields

FK Field

Delete Rule

Update Rule

PROTOTIPOS

FK_PROTOTIPOS_2

CODACTIVIDAD

CODIGO

NO ACTION

CASCADE

TERCEROS

FK_TERCEROS_4

CODACTIVIDAD

CODIGO

NO ACTION

CASCADE

 

Definition

CREATE TABLE ACTIVIDADES (
    CODIGO            CHAR(5) NOT NULL,
    NOMBRE            CHAR(80) NOT NULL,
    CODTIPORETENCION  CHAR(5)
);


ALTER TABLE ACTIVIDADES ADD CONSTRAINT PK_ACTIVIDADES PRIMARY KEY (CODIGO);
ALTER TABLE ACTIVIDADES ADD CONSTRAINT FK_ACTIVIDADES_1 FOREIGN KEY (CODTIPORETENCION) REFERENCES TIPORETENCIONES (CODIGO) ON UPDATE CASCADE;

 

     Previous topic Chapter index Next topic