Home > Database > Mysql Tutorial > How to enter mysql

How to enter mysql

little bottle
Release: 2019-05-31 17:41:15
Original
5535 people have browsed it

Use the INSERT INTO SQL statement in the MySQL table to insert data. You can insert data into the data table through the mysql> command prompt window, or insert data through a PHP script.

How to enter mysql

The following is the common INSERT INTO SQL syntax for inserting data into a MySQL data table:

INSERT INTO table_name ( field1, field2,...fieldN )
VALUES   
( value1, value2,...valueN );
Copy after login

If the data is character type, single quotes must be used Or double quotes, such as: "value".

Recommended tutorial: MySQL video tutorial

The above is the detailed content of How to enter mysql. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template