newer approach to object-oriented analysis and design methodologies introduced in the the 1980s and 90.135. Update anomalies (updated exception): When the user view updates an identity that contains redundant data, it may cause inconsistencies. There are three types of exceptions: Insert, delete, and update.136. User view: The requirements of a database application defined from the perspective of a particu
Database Design Skills and database skills
1. Relationship between original documents and entities
It can be a one-to-one, one-to-many, and many-to-many relationship. In general, they are a one-to-one relationship: an original document corresponds to only one entity. In special circumstances, they may be one-to-many or many-to-one relationships, that is, one ori
Generally, you can determine whether a database is designed with a comparative specification from two aspects. First, check whether there are a large number of narrow tables, and second, whether the number of wide tables is small enough. If the two conditions are met, the standardization level of the database is still relatively high. Of course, these are two general indicators. To meet the requirements of
item has the same attributes, such as the product ID, product name, product category, related information, supplier, number of items included, inventory, purchase price, sales price, and discount price. You will soon design four tables: Wares_type, Wares_provider, and Wares_info ):
Item type table (Wares_type)Description of name type constraintsType_id int no duplicate category ID, primary keyType_name cha
their ID card numbers. However, when an employee reports, his/her ID card may be missing. Therefore, the ID card number field is often not provided in a timely manner. Therefore, the ID card number field can be empty to meet the needs of these special circumstances. However, some processing can be done during database design. If no content is entered, set the default value of this field to 0 or N/. To avoi
Link Attribute Tuples Insertion exception: when inserting data, the data cannot be inserted into the database, and the relational database cannot be operated, that is, the insertion exception.
Deletion exception: when unnecessary information in a link is deleted, the information that should not be deleted is also deleted, that is, the deletion exception.
Update exception: when updating a
Before designing a database1. Test the existing environmentWhen designing a new database, you should not only carefully study the business needs, but also examine the existing system. Most DatabasesProjects are not built from scratch. Normally, there will always be existing systems within the Organization to meet specific needs (there may be no realAutomatically calculated ). Obviously, the existing system is not perfect, otherwise you do not have to
-server
Architecture (two-layer client-server architecture): consists of the main business and data processing logic, as well as client applications with user interfaces, and server programs that manage and control database access.
133.
Type hierarchy (type hierarchy): one is to mention its sub-classes and their superclasses, and so on.
134. UML (uniied Modeling
Language, Unified Modeling Language): a new method that introduced many Object-Oriented An
requirement.
131. tuple (tuples): a record in a link.
132. two-tier client-server architecture (two-tier client-server architecture ): it is composed of the main business and data processing logic, the client applications that work with user interfaces, and the server programs that manage and control database access.
133. type hierarchy (type hierarchy): one is to mention its sub-classes and their superclasses, and so on.
134. UML (Unified Modeling L
architecture ): it is composed of the main business and data processing logic, the client applications that work with user interfaces, and the server programs that manage and control database access.133. type hierarchy (type hierarchy): one is to mention its sub-classes and their superclasses, and so on.134. UML (Unified Modeling Language): a new method that introduced many Object-Oriented Analysis and Design
8 MySQL Database Design Optimization Methods for computer second-level examination MySQL
The following describes eight Optimization Methods for MySQL Database Design:
1. select the most suitable field attribute
MySQL can support access to large data volumes, but generally, the smaller the table in the
button on the page 3, the permission can be "visible", can be "read-only" or "Available " ( such as a button can be clicked ) is actually the WHO, what, how problem So the six tables mentioned above can actually design a table: IV, example description Here is an example of a design description. "User, role on page is permission to use" Detailed design: 1,
department 2, the domain can be a module, can be a page, or it can be a button on the page 3, the permission can be "visible", can be "read-only" or "Available " ( such as a button can be clicked ) is actually the WHO, what, how problem So the six tables mentioned above can actually design a table: IV, example description Here is an example of a design description. "User, role on page is permission t
business processing tables, in addition to adding the generated AutoNumber IDs (typically used as primary keys), the time CreateDate (creation time) of the record created, the creator of the record Creatby (note here, no ui_ ID (User Information table User_info primary key ui_id), because there are modified people), finally modified the person Lasteditby, the last modification time lasteditdate. (these can be used directly with Chinese characters, without coding, to improve the efficiency of th
A brief introduction of database design Method
Manual test method
Design quality is directly related to the experience and level of the design staff
Lack of scientific theory and engineering method support, the quality of the project is difficult to guarantee
The database ru
Basic Steps for Database Design
(1) Demand analysis stage: requirement collection and analysis, and data dictionary and data flow diagram are obtained.
(2) conceptual structure design stage: the user needs comprehensive, induction and abstract, the formation of conceptual model, expressed by E-R diagram.
(3) Logical Structure
,,What is the design principle of nosql? Is there a paradigm similar to that of relational databases?
I also found an article:Http://www.cnblogs.com/AllenDang/p/3507821.html! CommentsBasically, the design idea is what I mentioned above: Put the blog and comments together.This reduces the number of queries.However, a problem occurs if the user's nickname changes.Isn't every blog commented by this user going
If the database design is likened to Sherlock Holmes, according to a variety of conditions, restrictions, rules, the ladder of Cocoon, looking for the mutual links, step-by-step in-depth case of the middle, the final settlement of the case. But the first need to solve the case, then for the database design to use a lon
. First, design databases for the headquarters and each branch. Because of the large data volume, SQL Server is used to create a sales and inventory database for each branch, and an employee database, an inventory database for the
If these two conditions are met, it can be explained that the standard of the database is still relatively high. Of course, this is a two-generalities indicator. In order to meet the requirements of database design normalization, the following five requirements are generally required.
Request One: Nullable columns should be avoided in the table.
Although emp
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.