Part 2-Design tables and fields1. Check for various changesWhen designing a database, I will consider which data fields may change in the future. For example, the last name is like this (noteIt refers to the surname of a westerners, for example, the surname of a female after marriage ). Therefore, when establishing a system to store customer information, I tendStore the Last Name field in a separate data ta
Tags: information memory dependent steps technology sharing comparison must be good aboutObjective of this book: Understand the basic concepts and paradigms of a database Familiar with SMSS, T-SQL implementation of the database, build tables, add constraints Mastering T-SQL programming for powerful queries Master Creating indexes, views, quick access to databases Be familiar with creating stored procedures
Database design and database creation
Everyone has a martial arts dream. We all envy Qiao Feng, who owns the 18 OPs of the dragon army, Zhang Wuji, who has the power and power of jiuyang, Ling wuchong, who has the power of yijinjing and exclusive jiujian, and envy the legendary lone man for defeat ......
In fact, there is a common secret to their success: they al
Tags: var mysq detailed char BSP strong ext Arc MysI. Physical design core tasks and key details Second, the physical design experience 1. Data type design: Suggested field data type definitions are combined with the following points (for example, MySQL) 1) does not use image, and uses varbinary, etc. 2) do not use text and ntext, and use varchar or nvarchar 3)
Transport Method table (Shipmethod) is determined according to the relationship that should be in the actual business operation, so the database system structure design is suitable for the informatization of the business operation.
Figure 3-6 Example of a relationship between tables in a business database
Through the 3.1 section of the transaction processing
I am a newbie. I have been confused for a long time. Today I decided to ask you the correct or common practices. Here is a simple example: id, title, content ,...... Label table: id. The two tables above the title obviously require auto-incrementing IDS as the primary key to ensure uniqueness. Design 1 next... I am a newbie. I am confused about this question for a long time. Today I decided to ask you the correct or common practices.
A simple example
ultimately address performance issues.Once a research and development colleague to help it optimize SQL, found that its business needs are tens of millions of of data to sort the page and then take the top, a few 10 seconds can not return the results, it is recommended to remove the sorting, is told that some of the data needs to be prioritized, and this part of the need to prioritize processing of very few, The final solution is to split the priority data out of a separate program for processi
contain additional business logic.
(4) In the rule 4:mysql, ll_create, ll_modified use datetime types.
(5) Rule 5: Prohibit the use of complex data types (arrays, custom types, etc.).
(6) In rule 6:mysql, the satellite table ID is consistent with the primary table ID when the subordinate table is split. New primary key fields are not allowed in the satellite table.
(7) In the rule 7:mysql, the table with outdated concept must have the expiration mechanism at the beginning of its
These two weeks in the design of a survey database, now do a summary.
Usually as a user, feel very simple a module, now participate in the design, although the feeling there are countless imperfect places, but the design time, or consider a lot of.
Design of Questionnaire Mo
Recently doing a simple quiz on the website
The following four elements are now available
person, topic, question, answer
How to design a database (MySQL)
People can focus on people, topics, problems
Problems can have multiple topic tags
The Feed Stream (Home page display) can be mixed to appear:
The topic of my concern new issues
New answers to the questions I care about
Questions raised by people
inconvenient to ask the administrator to assign the system operation permissions to the employees. Therefore, the concept of "group" is put forward in the system, the people who have the same rights are programmed into the same group, and then the group is assigned permissions.
The Rights management system should be extensible . It should be added to any system with rights management capabilities. Just as a component can be reused continuously, rather than developing a set of management system
Database Technology-database Naming and Design Specifications database development history has been using a somewhat mysterious system naming database table and field. In the original database management system (DBMS), the results
The database design method can be divided into four categories: visual design method, normative design method, CAD method and automatic design method.
Among them, the New Orleans method is a kind of normative design method, which
Label:"The work of physical design"① Choosing the Right Database management system: Oracle,sqlserve,mysql,pgsql② defining naming conventions for databases, tables, and fields③ Select the appropriate field type according to the selected DBMS system④ Anti-Normalization design-consider reading efficiency and adding appropriate redundancy in some tables (space change
I am currently working on a simple Q A website with the following four elements: Topics, questions, and answers to questions about how to design a database (MySQL, you can have multiple topic tags to feed the stream (displayed on the homepage). The following is a question added to my topic... recently, I am working on a simple Q A website.
The following four elements are available:
People, topics, quest
Design paradigm of relational databases and database design paradigm
1. 1NF)The first paradigm is the basis of the second and third paradigm and the most basic paradigm. databases that do not meet the first paradigm are not relational databases.Guiding principles of the first paradigm:1) Each attribute of a Data Group can only contain one value.2) Each array in
Label:To build a Web rights configuration system, you need the following five data tables: People table, grouping table, page table, table of contents, Operation permission table. The IDs used in each data table are the identity of the self-increment 1, and each data table is defined as follows:1.1 Personnel table (Operatorinfo)1.2 Grouping table (Operatorgroup)1.3 Page Table (PageInfo)1.4 Table of Contents (catalog)1.5 Permissions table (rightlist)1.6 Mapping relationshipsUser tables can be map
recommend this method instead of opening another page.
To edit the entire table at the same time, you can use the cell editing mode of the table, such as the order editing page-Order Details table in the system]
System introduction-Permission Center
The design concept is the same as that of the same version. It uses [user], [role] =, [module], and [function] Permission control. For more information, see my previous introduction: general pe
Everything has a life cycle, of course, the database system is no exception! Database design and ER model This chapter is mainly based on the life cycle of the database system, the design phase of which to explain.Let's take a look at the life cycle of the
possible.2.4 Design2.4.1 ParadigmIf there is no performance necessary reason, should use the relational database theory, achieves the high paradigm, avoids the data redundancy, but if in the data quantity and the performance does not have the special request, considers the realization convenience to have the appropriate data redundancy, But basically to reach 3NF. If necessary, avoid the practice of storing multiple flags in a field. A value of 11101
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.