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

How to see a sequence's design?

Status
Not open for further replies.

askQs

Programmer
Feb 27, 2006
3
CA
Just like: desc table, desc view,
how to "desc" a sequence?
many thanks!
 
ask,

you should use

Code:
DESC USER_SEQUENCES;

this will show you what is there. Obviously to home in on a particular sequence, you should use
Code:
SELECT * FROM USER_SEQUENCES WHERE SEQUENCE_NAME = <my_sequence_name>;

Regards

Tharg

Grinding away at things Oracular
 

How about:
Code:
SELECT * FROM DBA_SEQUENCES
  WHERE owner = 'MYSCHEMA'
    AND sequence_name = 'MYSEQ';
[3eyes]

----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
lkbrwndba,

I agree, but not everybody has DBA privileges, askQs might be logged in as an ordinary punter. Other than that, your answer is obviously better, as it's most comprehensive.

Regards

Tharg

Grinding away at things Oracular
 

You are correct Tharg.

PS: Seems we hit the 'submit' button at the same time!

Cheers. [2thumbsup]


----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top