[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

postgreSQL



muy buenas
esto es un poco urgente
El caso es q tengo las tablas EMP Y DEPT ya creadas y con datos, y he intentado
añadir una restricción "foreign key" al campo "DEPTNO" de la tabla "EMP"
de esta manera:

ALTER TABLE EMP
ADD CONSTRAINT FOREIGN KEY (DEPTNO) REFERENCES DEPT(DEPTNO);

que tengo de hacer para agregar una restricción con la tabla ya creada???
GRACIAS DE ANTEMANO



-------------------------------------------------------------
http://correo.inicia.es
-------------------------------------------------------------






Reply to: