The Excel-to-SQL Converter is a Python tool designed to read data from an Excel file and generate executable SQL commands. This tool simplifies the process of migrating data from Excel spreadsheets to SQL databases.
- Converts Excel data to SQL commands.
- Supports various SQL databases (e.g., MySQL, PostgreSQL, SQLite).
- Easy-to-use and customizable.
- Python 3.x
- openpyxl library (
pip install openpyxl
)
-
Install Dependencies:
pip install openpyxl
-
Clone the Repository:
git clone https://github.com/s4hil/excel-to-sql.git cd excel-to-sql
-
Run the Converter:
python main.py
-
Move the script: Move the excel file into the directory containing the script.
-
Import SQL Data: Execute the generated SQL file using your preferred SQL client or command line tool to import the data into your database. An output.txt file will contain the output.
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to contribute and report issues on GitHub.