I use Oracle SQL (in SQLDeveloper, so I don’t have access to SQLPLUS commands like COLUMN) to execute a query that looks something like this:
select assigner_staff_id as staff_id, active_flag, assign_date,
complete_date, mod_date
from work where assigner_staff_id = '2096';
The results that he gave me look something like this:
STAFF_ID ACTIVE_FLAG ASSIGN_DATE COMPLETE_DATE MOD_DATE
---------------------- ----------- ----------------- -------- ------------------------- ----------------- --------
2096 F 25-SEP-08 27-SEP-08 27-SEP-08 02.27.30.642959000 PM
2096 F 25-SEP-08 25-SEP-08 25-SEP-08 01.41.02.517321000 AM
2 rows selected
It can very easily create a very wide and bulky text report when I try to paste the results as a beautifully formatted quick-n-dirty text block into the report by email or problem, etc. What is the best way to get rid of all the extra space in the output columns when I use plain-vanilla Oracle SQL? Until now, all of my searches on the Internet haven’t shown much since all the web search results show me how to do this using formatting commands like COLUMN in SQLPLUS (which I don’t have).
source
share