1

How can we export Excel data into Mysql table. Is there any plugIn in excel for converting data into mysql table or in any other methods?

Bibin Jose
  • 563
  • 4
  • 11
  • 19

4 Answers4

1

You can read and write by this. and also store data to your sqlite database table from .xls files cell.

Vishal Patoliya ツ
  • 3,170
  • 4
  • 24
  • 45
0

You need to save your data in CSV format(comma separated values) format in a file then you can use LOAD DATA command to load the data from file to table

Example -

LOAD DATA INFILE 'path_of_file' INTO TABLE 'name_of_table'

more information on load data can be found in MySQL manuals available online

Ankit Tripathi
  • 405
  • 4
  • 13
0

Convert your Excel to CSV first then import in phpmyadmin. The number of columns in csv should be equal to number of columns in table, If you have auto increment for first column then leave first column of CSV blank.

enter image description here

IF you dont use phpmyadmin this or this will help you out with import.

Community
  • 1
  • 1
Afsar
  • 3,104
  • 2
  • 25
  • 35
0

In case you convert Excel into CSV, then there is a way for bulk export:

query = "LOAD DATA INFILE '"+"\\FileName.csv"+"' INTO TABLE Table_Name  FIELDS TERMINATED BY ',' (Column_Name,....)";

Make sure, you match the table columns with the file(.csv) columns, to avoid error.

Incredible
  • 3,495
  • 8
  • 49
  • 77