- Step 1: Enter Text or Upload File - Begin by providing your data in CSV format. You can either manually input the information or upload a CSV file containing the data you want to convert to SQL. Ensure that the CSV file follows the required structure for accurate conversion.
- Step 2: Click the 'Convert' Button - Once your CSV data is ready, click the 'Convert' button. This activates the system to transform your CSV information into SQL statements, creating a script that can be used to insert the data into a SQL database.
- Step 3: Copy Result or Download SQL Script - After the conversion is complete, you have options. Copy the resulting SQL script for immediate use, or click 'Download' to save the SQL script file on your device. This allows you to conveniently access and execute the SQL statements whenever needed.
Converted SQL Output:
-- SQL script to insert CSV data into a table CREATE TABLE IF NOT EXISTS table_name ( `id` tinyint PRIMARY KEY, `firstname` varchar(4), `lastname` varchar(6), `rating` double ); INSERT INTO table_name (`id`, `firstname`, `lastname`, `rating`) VALUES (1, 'Dan', 'Jones', 10.2), (2, 'Bill', 'Barner', 4.4), (3, 'Joe', 'Smoe', 3.1);