Search notes:

Oracle: Referential integrity

Referential integrity is maintained with primary key - foreign key relations.

Error messages

Error messages related to referential integrity include:
In case of such an error, this SQL statement (which uses all_constraints)) might help find primary-foreign key relationships.

See also

Select statements to
Trying to delete a record in a table with a primary key whose value is still referenced in a tablee with a foreign key causes Oracle to throw ORA-02292: integrity constraint (…) violated - child record found.
Similarly, trying to insert a record into a table with a foreign key whose value is not in the referenced table causes Oracle to throw ORA-02291: integrity constraint … violated - parent key not found.
Referential integrity from a foreign key to a unique constraint

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758206518, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/objects/tables/constraints/referential-integrity/index(62): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78