Column heading setting [message #575429] |
Wed, 23 January 2013 03:52 |
morad_dba
Messages: 93 Registered: June 2008
|
Member |
|
|
Dear all,
I would like to have a column heading as follows in double inverted comma. but sqlplus environment returns column heading length equal to output value.
SQL> select substr('The independence day', 5,12) "Example of substr function"
2 from dual;
Example of s
------------
independence
I know that default column heading length is 30 character long.
but my column heading is less than 30 character long (which is 26)
How can i have column heading as Example of substr function ?
regards,
Morad.
|
|
|
Re: Column heading setting [message #575432 is a reply to message #575429] |
Wed, 23 January 2013 04:07 |
|
rishwinger
Messages: 132 Registered: November 2011
|
Senior Member |
|
|
SQL> SET LINESIZE 12
SQL> select substr('The independence day', 5,12) "Example of substr function" fr
om dual;
Example of s
------------
independence
SQL> select length('Example of substr function') as length from dual;
LENGTH
----------
26
SQL> SET LINESIZE 26
SQL> select substr('The independence day', 5,12) "Example of substr function" fr
om dual;
Example of substr function
--------------------------
independence
tested on 10g win 7
[Updated on: Wed, 23 January 2013 04:10] Report message to a moderator
|
|
|
Re: Column heading setting [message #575433 is a reply to message #575432] |
Wed, 23 January 2013 04:14 |
morad_dba
Messages: 93 Registered: June 2008
|
Member |
|
|
Dear,
I tested in sql*plus environment
SQL> set linesize 100
SQL> select substr('The independence day', 5,12) "Example of substr function"
2 from dual;
Example of s
------------
independence
SQL>
I did not get full given column name.
Please help
Regards,
Morad.
|
|
|
|
Re: Column heading setting [message #575435 is a reply to message #575434] |
Wed, 23 January 2013 04:36 |
morad_dba
Messages: 93 Registered: June 2008
|
Member |
|
|
I am getting as
SQL> set linesize 100
SQL> select substr('The independence day', 5,12) "Example of substr function"
2 from dual;
Example of s
------------
independence
SQL>
|
|
|
|
|
|