How to Disable Foreign Key Constraint in Postgresql?

The following examples demonstrate how to manually set up foreign key constraints in PostgreSQL. In the first example, we’re setting up a dummy record that is a child of an existing table. This will be used as an example of how to set up and then remove a foreign key constraint. 

how to disable foreign key constraint in postgresql

By Emmanuel MahuniEmmanuel Mahuni on Apr 04, 2021
ALTER TABLE tbl_StudentMarks DISABLE TRIGGER ALL;

Source: www.dbrnd.com

Add Comment

-3

In the second example, we’re setting up two tables with no foreign key constraints between them. 

ActionScript answers related to "how to disable foreign key constraint in postgresql"

View All ActionScript queries

ActionScript queries related to "how to disable foreign key constraint in postgresql"

Browse Other Code Languages

CodeProZone