Search code examples
pythonsqldatabaselibreofficelibreoffice-calc

How to import data from LibreOffice Calc to a SQL database?


What's the best way to switch to a database management software from LibreOffice Calc?

I would like to move everything from a master spreadsheet to a database with certain conditions. Is it possible to write a script in Python that would do all of this for me?

The data I have is well structured I have about 300 columns of assets and under every asset there is 0 - ~50 filenames. The asset names are uniform as well as the filenames.

Thank you all!


Solution

  • You can create a python script that will read this spreadsheet row by row and then run insert statements in a database. In fact, would be even better if you save the spreadsheet as CSV for example, if you only need the data there.