Home > Database > Mysql Tutorial > How to batch import Excel data into MySQL

How to batch import Excel data into MySQL

PHPz
Release: 2023-05-30 22:37:04
forward
4590 people have browsed it

1. Convert the excel table to csv format

1. Prepare the excel table we need to import, which contains a lot of data that we need to import.

How to batch import Excel data into MySQL

2. Modify the table header to English and try to correspond to the database table fields

How to batch import Excel data into MySQL

3. Convert excel to CSV data format

(1) Click Save As

How to batch import Excel data into MySQL

(2) Select the file type as: CSV (comma separated) (*.csv), click Save (then continue to click Yes in the pop-up box)

How to batch import Excel data into MySQL

(3) The conversion is successful and you get something like this

How to batch import Excel data into MySQL

2. Import the CSV directly into the database

Here I am using Navicat, others are also possible, such as SQLyog, but the click place is different

  • 1. Create a database, and then create a table to receive excel data (this step is relatively Simple, no screenshots required)

  • 2. Select the table to import data, right-click, and click Import Wizard

How to batch import Excel data into MySQL

3. Select the CSV file and click Next

How to batch import Excel data into MySQL

4. Select the CSV file just generated and click Next

How to batch import Excel data into MySQL

5. Click Next

How to batch import Excel data into MySQL

6. According to Fill in your own requirements and click Next

How to batch import Excel data into MySQL

7. Select the table to import data and click Next

How to batch import Excel data into MySQL

8. Fill in the corresponding field name, and then click Next

How to batch import Excel data into MySQL

9. Click Next step

How to batch import Excel data into MySQL

10. Click the start button again to start importing

How to batch import Excel data into MySQL

##Import successful:

How to batch import Excel data into MySQL

The above is the detailed content of How to batch import Excel data into MySQL. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:yisu.com
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template