Skip to content

Command line utility to execute SQL queries and export results to a CSV file.

Notifications You must be signed in to change notification settings

aparsons/SQLDump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQLDump

Download SQLDump-0.4.jar

Command line utility to execute SQL queries and export results to a CSV file.

Currently only supports Oracle and MySQL. For additional driver support please contact me or fork the project.

Usage

java -jar SQLDump-0.4.jar -url [jdbc:oracle:thin:@hostname:port:sid] -user [username] -pass [password] -sql [query]

Remember to enclose your SQL query with quotes!

Required

  • -url A database url of the form jdbc:subprotocol:subname
  • -user,--username The database user on whose behalf the connection is being made
  • -pass,--password The user's password
  • -sql,--query Any SQL statement

Optional

  • -f,--file File path of the csv report
  • -headers,--include-headers Include column headers in generated file

About

Command line utility to execute SQL queries and export results to a CSV file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published