Resctricciones en oracle

¿Qué tipos de restricciones de integridad estructural y de conducta implementa Oracle (versión) y cuáles son las instrucciones en SQL?

1 respuesta

Respuesta
1
Vaya parece una pregunta de examen.
Muy bien no se a que te refieres, igual te refieres a la integridad referencial.. ¿no?. Es que hace mucho que dejé la facultad y la forma de hablar evoluciona mucho.
La integridad referencial Oracle la implemente mediante las claves foráneas ForeignKey, y las claves primarias PrimaryKey.
Te pongo un ejemplo real de las instrucciones.
-- Create/Recreate primary, unique and foreign key constraints
alter table SPBC.BCT_PERSONA_OPERACION
add constraint BCPK_PERSONA_OPERACION primary key (FEC_PRCSO,NUM_ORDN_OPRCN,NUM_ORDN_PRSNA)
using index
Tablespace TSDATOS
Pctfree 10
Initrans 2
Maxtrans 255
Storage
(
Initial 128K
next 128K
minextents 1
maxextents 4096
pctincrease 0
);
alter table SPBC.BCT_PERSONA_OPERACION
add constraint BCFK_PAIS_PERSONA_INTERVIENE foreign key (COD_PAIS_EXPDCN_DCMNTO)
references SPBC.BCT_PARAISO_FISCAL (COD_PAIS);
Suerte.

Añade tu respuesta

Haz clic para o

Más respuestas relacionadas