Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

retreival of column name

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hai

i want to retrieve the column name and data type of the column for the table.

please guide me how to write Query fot the same

regards

Dhinakaran
 
Code:
SELECT column_name, data_type
FROM sys.all_tab_columns
WHERE TABLE_NAME = Whatever;
This must be done by a user who has SELECT access on the sys.all_tab_columns view.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top