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
Abstract: loading data for a database is one of the important responsibilities of the Administrator. It is precisely because of the importance that MySQL provides a wide range of methods. The INSERT and LOAD statements are mainly used.
INSERT new
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
The following articles mainly introduce the actual usage of MySQL insert into statements and related statements in MySQL insert into statements. MySQL insert into statements are frequently used in actual applications, therefore, it is better to know
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
The following article mainly introduces the actual usage of the MySQL INSERT INTO statement and the introduction of the relevant statements in the MySQL INSERT INTO statement, the MySQL INSERT INTO statement is often used in the actual application
Original link: http://www.jb51.net/article/47090.htm Today listen to colleagues about Oracle to MySQL data migration, he used insert into ... on duplicate key Update ..., I was thinking how not to replace it, so I came back to look carefully, they
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 -
A little familiarity with Oracle knows that if we want an SQL statement to insert multiple values into a table, if insert into a table values (each value), values (values),.....; This can be an error because Oracle does not support this notation if
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.