Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
36
rated 0 times [  40] [ 4]  / answers: 1 / hits: 19318  / 9 Years ago, mon, july 27, 2015, 12:00:00

I am trying to import data in excel file to mysql just like row colon using nodejs
are there any references i can learn or any module in nodejs that does my work or any sample code



I have searched in google but i have seen solutions for only mongodb and for python ,


More From » mysql

 Answers
45

A few methods which come to my mind:




  1. Save the excel sheet(s) you want to import in csv format, and then import them into mysql : cf. How to import CSV file to MySQL table
    By far the simplest method, but you might run into trouble with quotes and commas and other idiosyncrasies.


  2. use an javascript excel parser to read the excel file and perform directly with code the update in your mysql database : cf. https://github.com/SheetJS/js-xlsx
    That option is more complex but it allows you to automate the task should you have many files to copy.



[#65661] Friday, July 24, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
anthonyw

Total Points: 589
Total Questions: 117
Total Answers: 117

Location: Dominican Republic
Member since Sun, Sep 4, 2022
2 Years ago
;