How can I get column names from a table in oracle?



How can I get column names from a table in oracle?..

Answer / Rakshit Kumar

To retrieve the column names (or headers) of a table in Oracle SQL, you can use the DESCRIBE command. For example, to see the column names for the EMPLOYEES table, you can execute `DESCRIBE employees`. This will display a list of columns with their data types and other details.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle General Interview Questions

How to assign values to variables?

1 Answers  


How to connect ms access to oracle servers?

1 Answers  


What is the difference between sharding and replication?

1 Answers  


What are the various oracle database objects?

1 Answers  


sql query to get zero records from a table

7 Answers   CTS,


Describe the different type of Integrity Constraints supported by ORACLE ?

2 Answers  


ur a sql devoloper...what is the process in ur company for finding the database BUGS .. seperate DB testers are there? or devr.s are manage? if DB TESTERS in there what is the process

1 Answers  


how to find the n'th highest salary from emp ?

10 Answers  


Will the Optimizer always use COST-based approach if OPTIMIZER_MODE is set to "Cost"?

1 Answers  


Why is oracle used?

1 Answers  


Explain the use of record length option in exp command.

1 Answers  


I have a table emp. There is only one column in the table. In that , there are only three rows in that column. The value in the first row is 'A' and the value in the second row is 'B' and the third row is 'C'. Now, my question is , How will you write a select query to display the output as B C A Note: order by cannot be used coz it gives us output as CBA. But the output should be BCA.

4 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1803)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)