rename/ format column headings [message #84247] |
Thu, 19 February 2004 02:19 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Jo
Messages: 16 Registered: September 1999
|
Junior Member |
|
|
do you know how to rename column headings, for example, when i display customer details the column heading comes up CUST i want it to display as Customer_ID
THANX
|
|
|
|
|
|
Re: rename/ format column headings [message #224846 is a reply to message #84247] |
Thu, 15 March 2007 13:05 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
nattoo
Messages: 3 Registered: March 2007
|
Junior Member |
|
|
to change colunn heading for one session in sql*plus we have column command.
syntax:
column <col name> format a[size]|999...
column <col name> heading "new heading"
column ename heading "emp_name"
|
|
|
Re: rename/ format column headings [message #224847 is a reply to message #84247] |
Thu, 15 March 2007 13:07 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
nattoo
Messages: 3 Registered: March 2007
|
Junior Member |
|
|
to rename a column name permanently we have alter table command
syntax: alter table <table name> rename <column name> to <new col name>
ex: alter table emp rename ename to emp_name
Regards
Natesh
|
|
|