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
Original address: http://blog.csdn.net/zwan0518/article/details/11972853Directory (?) [-]
One query optimization
1 Creating an Index
2 Configuration of the cache
3slow_query_log Analysis
4 Sub-Library sub-table
Original works of Lin Bingwen Evankaka. Reprinted please indicate the source http: blogcsdnnetevankaka
1. user creation, permission, and deletion
1. connect to MySql
Connection: mysql-h host address-u user name-p user password (note: u and root do
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
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常用指令,java,php程序员,数据库工程师必备。程序员小冰常用资料整理MySQL common commands (for reference)The most common display commands are:1. Display the list of databases.show databases;2. Display the data table in the library:Use MySQL;Show tables;3, display the
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.
Optimization Methods for mysql nested queries and table queries: bitsCN.com poor optimization of nested queries
As mentioned above, join table queries are more effective than nested queries without special considerations. Although the two queries
Table partitioning is only recently known Oh, I used to do is the table to achieve the billion level of data, I would like to give you a description of the MySQL table partition to create and use it, I hope to be helpful to you classmates.
Table
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.