ERROR: One or more rows are referenced by foreign key constraint on ...

Reason:

You attempted to delete rows in a table using delete_rows() but the rows being deleted are referenced by a foreign key constraint on another table.

Resolution:

You should first delete the rows in the table with the foreign key constraint that reference the rows that you wish to delete.

Tips:

  • The error message identifies the table and columns of the dependent foreign key constraint.
Have more questions? Submit a request

Comments

Article is closed for comments.

Powered by Zendesk