Skip to content

boxuancui/load-sql-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

load-sql-script

Create SQL load script automatically

The script does not require setup or installation. It can be moved to the desired directory and used directly. It scans the data file line by line, instead of reading the enter file. "csv" and "datetime" module is used for parsing data.

Syntax:
python load_script.py [fileName] [hasHeader] [dlm] [tableName]

  • fileName: Name of data file
  • hasHeader: Has column names? "yes" or "no"?
  • dlm: Delimiter. Any 1-character delimiter and "\t" for tab
  • tableName: Name of the table to be created on database

About

create SQL load script

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages