Database security and integrity are two different aspects of database security protection. The security of the database protects the database to prevent damage caused by illegal users, and the integrity of the database protects the database to prevent damage caused by unintentional users. From the perspective of database security protection, integrity and security are closely related. The basic synonym of the integrity of the database refers to the correctness, validity and compatibility of the data in the database, and its main purpose is to prevent erroneous data from entering the database. Correctness refers to the legality of data. For example, numeric data can only contain numbers but not letters. Validity refers to whether the data belongs to the valid range of the defined domain. Compatibility means that two data representing the same fact should be consistent, and inconsistency is inconsistency. The database system is a simulation of the real system. There are various rules and regulations in the real system to ensure the normal and orderly operation of the system. Many rules and regulations can be transformed into constraints on data. These semantic constraints added to the data are called database integrity constraints, referred to as "database integrity", the system "defines" it as part of the model in the DBMS. The DBMS must provide a mechanism to check the integrity of the data in the database to see if it meets the conditions specified by the semantics. This mechanism is called "integrity check". To this end, the integrity control mechanism of the database management system should have three functions to prevent legitimate users from injecting illegal or unsynchronized data into the database when using the database:
正在翻译中..