sql - remove the gap between columns of result in oracle -


i have query gives me exact result. issue in result gives me lot of gap between 2 columns like

col1                                                                     col2                                              col3 ----                                                                     ----                                              ---- 

when have checked length of individual columns length function showing 4 or 5 length .

i have used windowing functions calculate columns , aliased them.

my question why showing result such , how eliminate gap b/w columns in result?

i using oracle10g

the sqlplus colsep setting controls what's displayed between columns. try this:

set colsep ' ' 

that's default. can set value want.

if want control width of column in sqlplus, it's done through column setting, matches column name. format column col1 20 characters wide, regardless of column's value:

column col1 format a20 

note if col1 value longer 20 characters, wrap.



Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -