In the practical application, often need to implement in a query statement to display more than one table of data, this is called a multiple table data record connection query, referred to the next year will be the query.
When you implement a
One: Connection query:Connection query is to connect two or more tables according to a certain condition, select the required data, the connection query query two or more tables at the same time, when there are fields representing the same meaning
In order to better optimize MySQL in high concurrency, it is necessary to understand the locking table mechanism when MySQL query is updated.I. OverviewMySQL has three levels of Lock: page level, table level, row level.MyISAM and MemoryStorageThe
MySQL Query performance optimizationThe optimization of MySQL query performance involves many aspects, including library table structure, establishing reasonable index and reasonable query. The library table structure includes how to design
1. Use the select statement to query the select * from data table name of a data table. 2. query the select Field 1 and 2from data table of one or more fields in the table; 3. query the specified data in the table. select * from the data table name
High Performance MySQL Reading Notes-query performance optimization, high performance mysql
For high-performance database operations, it is not enough to design the optimal database table structure and build the best index. You also need to design
MySQL query data table data record (including multi-table query)
MySQL query data table data record (including multi-table query)Transferred from: http://www.baike369.com/content/?id=5355The purpose of creating a database in MySQL is to use
MySQL table sharding Methods: MySQL
I. Let me explain why Table sharding is required.
When a piece of data reaches several millions, it takes more time for you to query the data at a time. If there is a joint query, I think it may die there. The
MySQL data import and export:Import:Save the contents of the system file to the table in the databaseBasic format for importing data:mysql> load Data infile "file name" into table name fields terminated by ' delimiter ' lines terminated by ' \ n
The main contents of this chapter:
First, foreign key
Second, table connection
Third, sub-query
Iv. Index
first, foreign key:
1. What is a foreign key
2. Foreign KEY syntax
3, FOREIGN key conditions
4.
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.