Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

SQL Column Heading

 
   Database Forums (Home) -> Oracle RSS
Next:  Is Connection Pool management provided?  
Author Message
mohd.shihabuddin

External


Since: Feb 06, 2006
Posts: 1



(Msg. 1) Posted: Mon Feb 06, 2006 6:15 pm
Post subject: SQL Column Heading
Archived from groups: comp>databases>oracle>misc (more info?)

Hi guys,

When we execute a select stmt in sqlplus we don't get the column
headings full , it is shown according to the data in that column.
So, i want to display the column headings in full as it was mentioned ,
while creating the table.
Can tell by setting which parameter of column , it will show me the
full column heading.



Now,
Eg:- select employee_nmbr,employee_name from emp;

emplo emp
-------- ------
1 KP

I want,

Eg:- select employee_nmbr,employee_name from emp;

employee_nmbr employee_name
----------------------- ------------------------
1 KP

Just chk the column headings in both the SQL stmts, I want the output
as it is in the 2nd eg.

Is there a single command to set this behavious universally so that i
dont have to user 'format' command for all column.

 >> Stay informed about: SQL Column Heading 
Back to top
Login to vote
Michel Cadot1

External


Since: Dec 10, 2003
Posts: 219



(Msg. 2) Posted: Tue Feb 07, 2006 1:55 am
Post subject: Re: SQL Column Heading [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

a écrit dans le message de 1139278513.066333.211900.DeleteThis@g14g2000cwa.googlegroups.com...
| Hi guys,
|
| When we execute a select stmt in sqlplus we don't get the column
| headings full , it is shown according to the data in that column.
| So, i want to display the column headings in full as it was mentioned ,
| while creating the table.
| Can tell by setting which parameter of column , it will show me the
| full column heading.
|
|
|
| Now,
| Eg:- select employee_nmbr,employee_name from emp;
|
| emplo emp
| -------- ------
| 1 KP
|
| I want,
|
| Eg:- select employee_nmbr,employee_name from emp;
|
| employee_nmbr employee_name
| ----------------------- ------------------------
| 1 KP
|
| Just chk the column headings in both the SQL stmts, I want the output
| as it is in the 2nd eg.
|
| Is there a single command to set this behavious universally so that i
| dont have to user 'format' command for all column.
|

You have to use "col ... format ..." statement for each column.

Regards
Michel Cadot

 >> Stay informed about: SQL Column Heading 
Back to top
Login to vote
mail2jerry

External


Since: Feb 07, 2006
Posts: 1



(Msg. 3) Posted: Tue Feb 07, 2006 8:27 am
Post subject: Re: SQL Column Heading [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Example:

column sql_text format a50

Jerry Sebastian
 >> Stay informed about: SQL Column Heading 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Column Name Change - Good Morning, Is it possible to change a column name of a table after the table has been created? I have a table called Members that have FirstName, LastName columns. The problem I have is the information that got put into the table had the names..

[Q] Sorting a column - Hi I have a table T with two columns NAME (VARCHAR2) and POS (NUMBER). I want to write an UPDATE query, which updates the column POS such that its values correspond to the alphabetical order of NAME. UPDATE T t1 SET pos = (SELECT ROWID FROM T t2..

Finding tables that contain a certain column value - I'm currently working in Oracle 8i and I'm attempting to write an SQL statement to provide a listing of tables where the column_name contains a certain value, but I'm not having any luck. I can obtain a listing of all the availabe tables with the column...

query to combine a column - I have a query that returns something like this, which is in a pl/sql function: id description col3 --------------------------------- 123 dingo stuff123 357 anteater stuff357 357 aardvark stuff357 357 ....

Inserting binary data to an column - Hi, i want to make a proof of concept about handling "binary data". Background: I want to get a binary decription (or hex etc) of a data stored in an column. Later i want to insert this binary/hex etc data directly in a column (by code in pls...
   Database Forums (Home) -> Oracle All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]