Insert into, replace into, insert ignore, replaceignore
I recently discovered that mysql insert statements have so many usage cases. Here I will share with you.
① Insert:
Insert into table_name values ();
Insert into table_name (column) values
Copy Code code as follows:
/*
SQL based on Chinese characters to get full spell (some words have not been added up, please add yourself, tu Note)
Generate all temporary tables for pronunciation
Get pronunciation according to
In mysql, the insert ignore, insert into, and replace into statements INSERT data INTO the mysql database. What is the difference between them?
The following statements are commonly used in mysql to insert data:
Insert into indicates that the data
Only recently found that the MySQL INSERT statement has so many uses, here to share.① about INSERT INTO:INSERT INTO table_name values ();INSERT INTO table_name (column) values ();INSERT INTO TABLE_NAME VALUES (select (column) from table_name2);The
SELECT... into and insert into ... Select Summary
SELECT ... INTO statementCreate a tab search.GrammarSELECT field1[, field2[, ...] into a new table [in external database]From sourceSELECT ... Into statements can be divided into the following
Three commonly used statements to insert data in MySQL:
Insert into represents the insertion of data, the database checks the primary key, if there is a repeat error;Replace into represents the insertion of replacement data, a PrimaryKey in 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
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
This article introduces: insert is a common statement in T-SQL, but we often encounter situations that require table replication during development, such as copying some fields of Table 1 to table 2, or copy the entire table 1 to table 2. In this
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.