Skip to content

Instantly share code, notes, and snippets.

@thinkerbot
Created January 13, 2012 19:19
Show Gist options
  • Save thinkerbot/1608219 to your computer and use it in GitHub Desktop.
Save thinkerbot/1608219 to your computer and use it in GitHub Desktop.
Sql tricks
-- sqlplus -S user/pass@conn @export.sql > column_output.txt
set colsep '|'
set echo off
set feedback off
set linesize 1000
set pagesize 0
set sqlprompt ''
set trimspool on
set headsep off
select a||' '||b from c;
exit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment