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
DML: Data Manipulation languageINSERTDELETESELECTUPDATESELECT:SELECT Select-list from tbname| tbnames| SELECT ACTION QualificationSelect-list Search ListDISTINCT, the same value is displayed only once.As Alias Field alias* All contentField fields
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
1. Full backup and incremental backup 1.1 full-scale backupFull-volume data is all the data in the database, and a full backup is the backup of all the data in the database.Back Up all libraries:mysqldump -uroot -p123456 -S /data/3306/mysql.sock -F -
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
MySQL study Notes-insert row records into data tables
1. use the INSERT statement to INSERT new data
Syntax:
INSERT [INTO] tbl_name [(col_name,...)] VALUES (pression ,...),...
INSERT [INTO] tbl_name SET col_name = expression ,...
Let's start to use
Usage of INSERT, UPDATE, DELETE, and REPLACE statements in MySQL database bitsCN.com
MySQL database insert and update statementsThe SQL statements used to operate databases are generally divided into two types: Query statements, SELECT statements,
InnoDB RR isolation level insert select two deadlock case analysis, innodb Case Analysis
Author:Gao Peng (Eight monsters in Chongqing)
School draft:Master Ye (some content is fine-tuned)
Original article: http://blog.itpub.net/7728585/viewspace-
MySQL Optimization-Delete Insert update and mysql optimization insert update
Reprinted please indicate the source: http://blog.csdn.net/l1028386804/article/details/46581769
Insert
Insert multi-row query results into the table
Syntax
INSERT INTO
This article is a detailed analysis of the use of the MySQL database insert, UPDATE, delete, and replace statements, the need for a friend referenceMySQL database insert and UPDATE statementsCitation: SQL used to manipulate the database is generally
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.