This article is a MySQL database insert, UPDATE, delete and replace statements in the use of detailed analysis of the introduction, the need for friends to refer to the
MySQL database insert and UPDATE statements Introduction: The SQL used to
Original source: http://www.cnblogs.com/luckcs/articles/2543607.htmlMySQL Master-slave Replication (master-slave) and read-write separation (mysql-proxy) practicesAs the most widely used free database in the world, MySQL believes that all engineers
MySQL quickly creates large amounts of data, copying (some or all) of the data from one table to another.
Usage: INSERT into table_name1 (field1,field2) SELECT field1,field2 from Table_name2;
Prerequisite conditions
The code is as
Http://heylinux.com/archives/1004.htmlAs the most widely used free database in the world, MySQL believes that all engineers engaged in system operations must have contacted. However, in the actual production environment, the single MySQL as a
System version: Ubuntu 12.04 64-bit
Install (the version used for the test is mysql-server-5.5):
Apt-get Install Mysql-server
Start and stop, etc.:
/etc/init.d/mysql start
/etc/init.d/mysql restart
/etc/init.d/mysql stop
Local connection:
Speaking of mysql, we immediately think of its small size, fast speed, and open source features, so it is widely used. Today, we will summarize the two most frequent mysql operations: insert and query, and the optimization methods.
Insert:
I. Text
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.