Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.1 » SQL Anywhere Server - SQL Usage » Data integrity » Entity and referential integrity


Loss of referential integrity

Your database can lose referential integrity if someone:

  • Updates or drops a primary key value. All the foreign keys referencing that primary key would become invalid.

  • Adds a new row to the foreign table, and enters a value for the foreign key that has no corresponding primary key value. The database would become invalid.

SQL Anywhere provides protection against both types of integrity loss.