Skip to content

Instantly share code, notes, and snippets.

@randyzwitch
Created August 6, 2013 13:38
Show Gist options
  • Save randyzwitch/6164489 to your computer and use it in GitHub Desktop.
Save randyzwitch/6164489 to your computer and use it in GitHub Desktop.
Julia ODBC results
julia> using ODBC
julia> ODBC.connect("MySQL")
Connection 1 to MySQL successful.
#Save query results into a DataFrame called 'results'
julia> results = query("Select * from a1987;");
julia> typeof(results)
DataFrame (use methods(DataFrame) to see constructors)
#Save query results to a file, tab-delimited (default)
julia> query("Select * from a1987;", file="output.tab", delim = '\t');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment