http://blog.csdn.net/taijianyu/article/details/5945490One: Nullable columns should be avoided in the table;Two: The table should not have duplicate values or columns;Three: The records in the table should have a unique identifierIn the database table design, the database administrator should develop a good habit, with an ID number to uniquely identify the row rec
0, the process of using E-R method to design the database concept is discussed.
A : the use of E-R method for database conceptual design, can be divided into 3 steps: First, the design of local E-R mode, and then the local E-R model integrated into a global E-R mode, and fin
A successful management system is made up of: [50% of the Business + 50% software], and 50% of the success of the software has [25% database + 25% of the program], the database design is a good or bad is a key. The database design is the most important part of the applicatio
MySQL performance tuning and Architecture design--9th chapter The performance optimization of MySQL database schema designPreface: Many people think that performance is optimized in the process of writing code (program code or database code), in fact, this is a very big misunderstanding. The real impact of the most performance of the part is in the
Tags: blog http io using ar strong data SP problemBrief introductionBefore you start reading this article, I have to tell you clearly that I am not a master of database design. The 11 points listed below are the personal insights I have learned from my own experience in project practice and reading. I personally think they have provided a great help to my database
The design paradigm (paradigm, database design paradigm, and database design paradigm) is a set of relational patterns at a certain level. Database construction must follow certain rules. In relational databases, this rule is a pa
Database paradigm-Easy to understand "turn" database paradigm is an essential knowledge in database design, without the understanding of the paradigm, can not design a high-efficiency, elegant database. Even
trade Item number) to order projects and DUNS (Data Universal numbering system) for customers. when designing a database, be sure to pay attention to industry standards. CREATE TABLE Sales_orders(Order_nbr INTEGER not NULL PRIMARY KEYCHECK (Order_nbr > 0),Customer_duns CHAR (9) Not NULL,Order_shipping_amt DECIMAL (5,2) not NULLCHECK (Shipping_amt >= 0.00),etc);CREATE TABLE Sales_order_details(Order_nbr INTEGER not NULL,Gtin CHAR (a) is not NULL,PRIMA
increment up but the number is amazing, not easy to parse. on the surface, the above method is sufficient to achieve the function, simplify the database design and implementation of the complexity of this purpose, but there is a disadvantage, we are involved in the list of permissions are not independent of each other, but interdependent, such as the modification of permissions, in fact, including the per
Article tags design method, article tags database design method examples
The following we take WordPress and Sablog as an example, said that WordPress and Sablog in the tag database structure design and procedures of the differences, I hope we can learn from the article labe
and customers.A secondary table is not an entity or a relationship; it provides information. They are query tables (looks up tables) that are like calendars or replace calculations in SQL. They are often misunderstood to be treated as entities or relational tables.Let's go over the details. A sales order is the relationship between a customer (entity) and our Inventory (entity). The order details are the weak entities that exist because we have order
design to reduce Program Complexity. I will introduce a case of intentionally increasing data redundancy.
Ii. Design of commodity information tableAssume that you are an electronic brain developer of a department store. One day, the boss asks you to develop an online e-commerce platform for the company. The department store sells thousands of products, however, currently, we only plan to sell dozens of p
DBMS and is widely used as a tool in database design for data modeling. The E-R data model has undergone many modifications and expansions since its inception. Let's look at a simple ER diagram, as shown below:In our ER diagram, what is the meaning of each figure? NIE, the small part to introduce briefly, the ellipse represents the attribute. Rectangular means the entity, diamond means contact, the number
databases have many very good features, but improper design will make these features partially or completely lost.
Let's take a look at the following scenarios caused by poor Database Design:
1. Loss of Data Consistency
An order management system maintains the order information of customers and customers. After a user who uses the system receives a call from the
, 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.
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 condition
(because it has no descendants), but must have a foreign key (because it has a father).The design of primary key and foreign key plays an important role in the design of global database. When the global database was designed, a U.S. database
Tags: mysql database stored procedure trigger MySQL database permissions database design three major paradigmsA. MySQL stored procedure1. Concept: SQL statement with logic, there is no condition in the previous SQL statement, no loop, the stored procedure with the Process Control statements.2. Features:(1) Execution ef
quantity of the corresponding products are displayed in the brand/origin/style table.With this data, is it still difficult to write the interface?
Sometimes it is impossible to steal, maybe it is less than summing up experience, I am really sorry.
I plan to design it like this:
ID product name Product ID model color price inventory quantity
Id Pro_Name Pro_id pro_type pro_color pro_price pro_num
1 c
MySQL database design specifications and mysql design specificationsReprinted by songdeyouxiang
1. Database naming rulesIt consists of 26 English letters (case sensitive) and 0-9 Natural Numbers (not frequently needed) with an underscore;The name must be concise and clear (the name cannot exceed 30 characters );For exa
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.