Skip to content
This repository was archived by the owner on May 2, 2019. It is now read-only.

Latest commit

 

History

History
21 lines (14 loc) · 428 Bytes

File metadata and controls

21 lines (14 loc) · 428 Bytes

JSON2SQL

This PHP script converts a JSON file to a series of SQL INSERT staments

Usage

Make this executable

$ chmod u+x json2sql

Then invoke it from the command line like this

$ json2sql tablename myfile.json

The script will automatically write the resulting file as myfile.sql

More info