Home >Database >SQL >What is the database add statement?

What is the database add statement?

步履不停
步履不停Original
2019-06-14 11:51:5329980browse

What is the database add statement?

The database addition statement is an INSERT INTO statement.

INSERT INTO statement is used to insert new records into the table.

SQL INSERT INTO syntax

The INSERT INTO statement can be written in two forms.

The first form does not need to specify the column name to insert data, just provide the inserted value:

INSERT INTO table_name
VALUES (value1,value2,value3,...);

The second form requires specifying the column name and the inserted value:

INSERT INTO table_name (column1,column2,column3,...)
VALUES (value1,value2,value3,...);

For more technical articles related to SQL, please visit the SQL Tutorial column to learn!

The above is the detailed content of What is the database add statement?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn