Add and Drop Foreign Key en PostgreSQL - pgAdmin

Опубликовано: 05 Октябрь 2024
на канале: DevGuardian Code
5,688
70

En el video se muestra como podemos añadir y eliminar foreign key en postgresql a través de consola.

Comandos:

ALTER TABLE XXXXX
ADD CONSTRAINT fk_xxxx FOREIGN KEY (campo_de_tabla_local) REFERENCES tabla_clave_primaria(campo_fk);


ALTER TABLE XXXXX
DROP CONSTRAINT fk_xxxx


#postgresql
#baseDeDatos
#pgadmin
#constraint
#addconstraint
#dropconstraint

add constraint
drop constraint
foreign key
delete foreign key
add foreign key
pgadmin
pgadmin4
base de datos
create foreign key