referential integrity

A database management safeguard that ensures every foreign key matches a primary key. For example, customer numbers in a customer file are the primary keys, and customer numbers in the order file are the foreign keys. If a customer record is a deleted, the order records must also be deleted otherwise they are left without a primary reference. If the DBMS doesn’t test for this, it must be programmed into the applications.

referential integrity
Sự bảo mật quản lý cơ sở dữ liệu vốn bảo đảm mỗi khóa thứ cấp kết với một khóa sơ cấp. Ví dụ, các số khách hàng trong một file khách hàng là các khóa thứ cấp, và các số khách hàng trong file đơn đặt hàng là các khóa thứ cấp. Nếu một record khách hàng bị xóa, các record đơn đặt hàng cũng phải bị xóa, nếu không chúng sẽ không nhận được sự tham chiếu sơ cấp. Nếu DBMS không kiểm tra điều này, nó phải được lập trình trong các trình ứng dụng.


Published:

PAGE TOP ↑