public class SQLToCSV extends Object
N.B. This class accepts raw SQL strings and executes them directly via JDBC. It DOES NOT perform any SQL escaping or other injection prevention. It is the user's responsibility to ensure that SQL passed to this class performs as desired.
Modifier and Type | Class and Description |
---|---|
static class |
SQLToCSV.SQLToCSVOptions |
Constructor and Description |
---|
SQLToCSV() |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args)
Reads an SQL query from the standard input and writes the results of the
query to the standard output.
|
public static void main(String[] args)
args
- Single arg is the JDBC connection string.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.