Created
November 20, 2015 15:10
-
-
Save asimmon/ca4134e371c3fb95a0c1 to your computer and use it in GitHub Desktop.
SQL query results to CSV using raw queries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE | |
v_csv CLOB; | |
BEGIN | |
SELECT query_to_csv('SELECT * FROM items') INTO v_csv FROM dual; | |
END; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment