Skip to content

A py script that reads the data from an excel file and converts it to an executable sql command.

Notifications You must be signed in to change notification settings

s4hil/excel-to-sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Excel-to-SQL Converter

Overview

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.

Features

  • Converts Excel data to SQL commands.
  • Supports various SQL databases (e.g., MySQL, PostgreSQL, SQLite).
  • Easy-to-use and customizable.

Requirements

  • Python 3.x
  • openpyxl library (pip install openpyxl)

Usage

  1. Install Dependencies:

    pip install openpyxl
  2. Clone the Repository:

    git clone https://github.com/s4hil/excel-to-sql.git
    cd excel-to-sql
  3. Run the Converter:

    python main.py
  4. Move the script: Move the excel file into the directory containing the script.

  5. 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.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Feel free to contribute and report issues on GitHub.

About

A py script that reads the data from an excel file and converts it to an executable sql command.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages