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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

table definition as select-result 1

Status
Not open for further replies.

stwi1974

Programmer
Jan 29, 2002
17
DE
Hi!

is there any possibility to get the table-definition as result from a select, like SQL-Plus' DESC?

thx in advance
 
The sys view ALL_TAB_COLUMNS probably has what you're looking for.

Try this:
Code:
SELECT column_name, data_type, data_length, data_scale, nullable, data_default
FROM all_tab_columns
WHERE table_name = <table_name>

Good luck
 
Thx for your hint, JediDan!
but all_tab_columns doesnt recieves anything (isnt filled) but the result of all_views gave me all_tab_cols which is fits all i wanted :)

zerberus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top