Oracle's all_tab_columns table stores meta data information related to table columns. The SQL below will return all columns as well as column order Id for a specific table and owner. In our example, we will be looking at table EMLOYEES and owner HR.
Results:
| Title | Under | Posted on |
|---|---|---|
| MD5 - SHA checksum of a file. | PeopleSoft Technical | 02/07/2012 - 5:29am |
| nVision Tabular Report through PIA with prompts | PeopleSoft Technical | 02/02/2012 - 10:07pm |
| Can we create an AE to mass update Position - Jobcode data? | PeopleSoft Technical | 01/18/2012 - 3:11am |
| Pay Components on job data can be defaulted and setup based on the rules? | PeopleSoft Functional | 01/05/2012 - 4:58am |
Comments
Try this command
You are right about the DESC command but this isn't the purpose behind the SQL in the post. The purpose is not to only list the columns BUT to get the actual column names and do something with them. Example would be to dynamically insert column names into your code :)
Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog
Post new comment