How to use the MySQL command line to insert data
In MySQL, you can use the following INSERT statement to insert data into the database:
<code>INSERT INTO table_name (column1, column2, ...) VALUES (value1, value2, ...);</code>
Where:
Example
Suppose there is a table named "customers" with the following columns:
To insert a child named "John Doe" with an age of 30 into this table For customers, you can use the following command:
<code>INSERT INTO customers (name, age) VALUES ('John Doe', 30);</code>
Other considerations
The above is the detailed content of How to insert data command line statement in mysql. For more information, please follow other related articles on the PHP Chinese website!