Depends on what you want to do with them.
If you insert them into a table, you can cancel seq.nexval in the insert query. (As explained here: How to insert multiple rows in oracle with sequence value? )
If you use them in a loop, you can get them in this loop.
What do you want to do with them?
As I know, you cannot get multiple values ββfrom a sequence.
UPDATE: a_horse_with_no_name aswer can be improved as follows:
select your_sequence.nextval from dual connect by level < 1000
:)
Florin Ghita Nov 28 '11 at 7:16 2011-11-28 07:16
source share