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

SQL Anywhere 11.0.1 » SQL Anywhere Server - SQL Usage » Creating Databases » Ensuring data integrity » Enforcing entity and referential integrity

 

Losing 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.