Home > Database > Mysql Tutorial > Redundancy issues in databases

Redundancy issues in databases

藏色散人
Release: 2019-02-21 11:10:33
Original
6570 people have browsed it

Redundancy means having multiple copies of the same data in the database. This problem occurs when the database is well normalized. Suppose the student details attribute table is: student ID, student name, university name, university ranking, course selection.

Redundancy issues in databases

It can be seen that the values ​​of the attributes college name, university ranking, course are being duplicated, which may cause problems. Problems caused by redundancy include: insertion exceptions, deletion exceptions and update exceptions.

1. Insertion Exception

If the details of a student have to be inserted, whose course has not been decided yet, it cannot be inserted until the time course is decided for the student.

Redundancy issues in databases

This problem occurs if the data record cannot be inserted without adding some other extraneous data to the record.

2. Deletion Exception

If you delete the student details in this table, then the university details will also be deleted, this should not be common knowledge.
This exception occurs when deleting a data record results in the loss of some irrelevant information that was stored as part of the record being deleted from the table.

3. Update exception
Assuming that the grade of the university changes, the change must be spread throughout the entire database, which will consume a lot of time and be computationally expensive.

Redundancy issues in databases

If updates do not occur everywhere, the database will be in an inconsistent state.

Recommended tutorial: "mysql tutorial"http://www.php.cn/course/list/51.html

This article This article is a relevant introduction to redundancy issues in databases. I hope it will be helpful to friends in need!

The above is the detailed content of Redundancy issues in databases. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template