Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: PL/SQL
Expertise: Intermediate
Jun 26, 2007

When to use ORDER in Sequences in PL/SQL

You may need to use ORDER to force sequence numbers to be output in the order of request when you're using them for timestamping. Most of the time, your sequence numbers will be in order anyway. If you are using exclusive mode, for example, Oracle always generates sequence numbers in order; but if you're using Oracle with the Oracle Real Application Clusters option in parallel mode, you'll need to guarantee ordered generation by using the ORDER command.

Shraddha Pandya
Thanks for your registration, follow us on our social networks to keep up-to-date