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

Do we need commit after truncate?

608


What is pragma in sql?

618


what is the difference difference between procedure and packages

9207


what are the differences between char and varchar? : Sql dba

524


What is output spooling in sql*plus?

549






What are inner outer left and right joins in sql?

511


How do you bind variables in pl sql?

578


Can you skip header records while loading? : aql loader

537


What is the difference between left outer join and left join?

511


How to run sql statements through the web interface?

511


What is the use of stored procedures?

516


What are tuples in sql?

559


What are commit, rollback, and savepoint?

569


what is 'trigger' in sql? : Sql dba

555


Does pdo prevent sql injection?

520