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

How do you optimize a stored procedure query?

732


What is foreign key in sql with example?

680


What is crud stand for?

746


What are the types of variable use in pl sql?

742


Are pl sql variables case sensitive?

769






What are the datatypes available in pl/sql ?

793


What is mutating error in pl sql?

750


How many clustered indexes can be created on a table?

794


How does sql*loader handles newline characters in a record? : aql loader

763


explain the advantages and disadvantages of stored procedure? : Sql dba

709


What is the source code of a program?

707


How do you explain an index?

986


how to extract a unit value from a date and time? : Sql dba

732


What is rtm in testing?

757


What is the advantage of index in sql?

687