Home » SQL & PL/SQL » SQL & PL/SQL » Sequence!!!
Sequence!!! [message #146022] Tue, 08 November 2005 04:11 Go to next message
prashanthgs
Messages: 89
Registered: May 2005
Location: chennai
Member
Hai to all,

I want to know that whats meant by sequence and its purposes.

Where it will be used.

Thanking u

regards,
prashanthgs
Re: Sequence!!! [message #146031 is a reply to message #146022] Tue, 08 November 2005 04:48 Go to previous messageGo to next message
Arun Srinath
Messages: 12
Registered: January 2005
Junior Member
Sequence is an object in oracle which is used to generate unique ids for the tables.

Every time Sequence returns unique value.
It has 3 functions Prevval , Nextval ans currval.

For eg you are create a sequence A with starting value 0 and max value 100.

First time u call A.nextval, it will return 1.
next time u call A.nextval, it will return 2 ans so on.

Similarly Prevval returns the previous value of the sequence and currval, current value of the sequence.

For more information u can see oracle Sql reference.


Re: Sequence!!! [message #146034 is a reply to message #146031] Tue, 08 November 2005 04:55 Go to previous message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
http://www.orafaq.com/forum/fa/482/0/

Search here for "sequences".

Read the sticky on top of this forum for useful links.

MHE

[edit: TC]

[Updated on: Tue, 08 November 2005 04:56]

Report message to a moderator

Previous Topic: Change Enter character or special character
Next Topic: A Simple Question
Goto Forum:
  


Current Time: Mon Aug 18 08:16:04 CDT 2025