In the leaf article, we talked about using the inner join to reduce the scanning of the page, which is reducing the so-called back table for example:
Copy Code code as follows:
SELECT * from ' T1 ' INNER JOIN (select id from ' T1 '
1, MySQL 5.6.32 64-bit installation package download
In the official website http://dev.mysql.com/downloads/mysql/5.6.html# use thunderbolt to download the MySQL 5.6.32 64-bit installation package Download:
Http://pan.baidu.com/s/1pLCiAmf
2,
Query for duplicate data in MySQL database
SELECT * FROM Employee GROUP BY Emp_name has count (*) >1;
Mysql query can delete duplicate data
Select t1.* from Employee T1 where (t1.emp_name) in (select T4.emp_name from (select T2.emp_name to
It's been a long time since we last installed MySQL, Win7 64-bit how to install the configuration mysql-5.7.5-m15-winx64? In fact, the steps are these, there may be forgotten. Simply record it. (Refer to some blogs on the web.) )
How do I download the latest version of MySQL?
I'll go to MySQL first. Download the latest version of mysql-Link: https://www.mysql.com/downloads/
Enter this interface to download:
Downloads–>mysql Community Edition (GPL) (This is free edition,
Hibernate.cfg.xml plus attributes.
true
UTF-8
MySQL driver with more than 3.0.15 version of,
Add a filter, use the UTF-8 character set on it,
If you use spring, write it in the sessionfactory in spring.
For example:
"-//hibernate/hibernate
Copy Code code as follows:
Groupadd MySQL//set up MySQL user group
useradd-g mysql mysql//MySQL account set up
TAR-ZXVF mysql-x.x.xx.tar.gz//unzip MySQL
CD mysql-5.0.45//into the extracted MySQL directory
It is not safe to use MYSQL_PWD. See 6.3 Connection to the MySQL server.
The "MySQL" Customer uses the file named in the Mysql_histfile environment variable to hold the command line history, the default value of the history file is
Prerequisite: You will use VI. Obviously, this article was tested under Linux. This article uses the MySQL command line tool, if you do not, use phpmyadmin should also be able.
1th Step: Download Pure IP data, extract into Ip.txt.
Detailed: This
If the fields of the 2 tables are consistent and you want to insert all the data, you can use this method:
Code:
Copy Code code as follows:
INSERT into target table SELECT * from source table;
For example, to insert a articles table
The specific syntax for bulk substitution is:
Copy Code code as follows:
UPDATE Table name SET
Specify field = replace (specify field, ' String to replace ', ' desired string ')
WHERE condition;
If you want to have a
Directory
1. Choice of Character Set 1
2. Primary KEY 1
3. Foreign Key 2
4. Index 2
4.1. The following conditions are appropriate for creating index 2
4.2. The following circumstances are not appropriate to create an index of 3
4.3. Federated Index 3
MySQL supports specifying multiple statement execution in a single query string by assigning parameters to a link:
Copy Code code as follows:
Link Time setting
Mysql_real_connect (..., client_multi_statements);
Or
Midway
Mysql>prompt \u@\h (\d) \r:\m:\s>
\u: Connecting Users
\h: Connecting the host
\d: Connecting to the database
\r:\m:\s: Show Current time
Mysql>prompt \u@\h (\d) \r:\m:\s>
Root@localhost (MySQL) 08:55:21> status
--------------
MySQL Ver 1
Deletion and update operations are often more expensive than inserts, so a good design requires less update and deletion of the database.
3.1 Update operation
The update operation of the database will bring a series of "Effects": Update operations
Simulation Scene One:
To adjust the structure of a table in a database, add a few fields, refresh the previous data, refresh the content by matching one of the existing field URLs, and then update the newly added field type and typeid.
Later, I
One, the connection MySQL.
Format: mysql-h host address-u user name-P user Password
1, Example 1: Connect to MySQL on this machine.
First in the Open DOS window, and then into the directory Mysqlbin, and then type the command mysql-uroot-p, enter
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service