• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

order in DESCRIBE cmd

 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are no order in names if using desc v$session or others.
How can I sort the names to find one of fields easily?
thanks.
 
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thats a bit difficult.
As u said,there is no order by on this view that u can use.
The other option is to go into the data dictionary definition for v$session
and figure out the colnames included in the defition of the view itself.
For normal database tables though, you can go to dba_tab_columns and order by on column_name or column_id
for instance
<code>
select column_name, column_id from dba_tab_columns where table_name = 'ACCESS$'
COLUMN_NAME COLUMN_ID
------------------------------ ----------
D_OBJ# 1
ORDER# 2
COLUMNS 3
TYPES 4
</code>
this should give u an idea!
All the best.
 
reply
    Bookmark Topic Watch Topic
  • New Topic