Import Excel data to MySQL

Source: Internet
Author: User

Last year's investment statistics monthly data volume is large, the original table is the XLS format (or EXECL2003), a single sheet maximum can only put tens of thousands of rows, but the total data has more than 100,000 lines, so can only be stored into two sheet. The EXECL2010 format is a single sheet that can be put down, but it can't actually copy and paste the data from one sheet to another sheet (probably because there are too many rows). Just want to learn the EXECL data into the MySQL database method, and then began to try.

The first use of the MySQL for Execl feature, installed in the MySQL installation of this control, in the Excel Data menu can be directly called, you can follow the data in the first several lines to determine the database type, but the comparison of the chicken, because often not judged, or set the field length is too short, The error occurs when the lead is not complete. Navicate 10 tool to import data.

1, with Navicat 10 open the database to import data 2, click the Import Wizard, select import file Format 3, select the data file to import, if there are multiple workbooks, you can select the Target workbook 4, fill in the imported data rows, date number format 5, select the target table, you can fill in the table name, If the table name does not exist in the database, automatically generate a new table 6, select the generated new table of the field data type, the Target Field name is the first row of the data table. Types support various common types of MySQL (default is varchar, length 255). Note: It is a good idea to check the original Excel data first, if the format of a column has already been defined (as defined as date format), then the corresponding match (also defined as the dates), otherwise the column data will be the wrong number after the import. 7, select the data import Mode 8, press the Start key, import data 9, the export results for the import MySQL data can be exported to Excel file again through the Export Wizard.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.