How can I import an excel file into my SQL database? I have two options, MSSQL or MySQL.
Thank you
How can I import an excel file into my SQL database? I have two options, MSSQL or MySQL. Thank you |
|||
|
You could export the excel file as a CSV and then use mysqlimport : http://dev.mysql.com/doc/refman/5.0/en/mysqlimport.html |
|||||||||||||||||
|
In Python it would be something like:
|
|||||||||
|
You can import the file as any other file. If the question is about data from Excel then in SQL Server I would have linked Excel as a linked server, see here or here, or used OPENROWSET. There are other options like exporting/importing as XML, etc. All options are pretty well covered on internet. What us the concrete context and/or problem? |
||||
|