How to get the 3rd column(i.e all the data along with the
column name)in a table?

Answer Posted / ramesh

Column Names of a table are stored in the data dictionary
table user_tab_columns along with column_id. By referring
column_id we can display the column name as :

select column_name from user_tab_columns where table_name
= 'EMP' and column_id = 3;

Is This Answer Correct ?    10 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What can I use instead of union in sql?

596


What is indexing in sql and its types?

631


what is difference between delete and truncate commands? : Sql dba

680


tell me about various levels of constraint. : Sql dba

628


Explain constraints in sql?

681






Give the order of sql select?

720


What is t sql in sql server?

652


Is not equal in sql?

656


What are the different datatypes available in PL/SQL?

649


Can sql function call stored procedure?

640


What is bulk collect in pl sql?

620


What is replication id?

606


How many parts of a pl sql block are optional?

612


What do you understand by exception handling in pl/sql?

655


How to add, remove, modify users using sql?

654