Tips and Tricks in a world of Mix

Very simple .
You can decrease the number of your current sequence .
Important to set the nextval, so that the new value will be caught in the sequence.
And most important to change back the increment by 1 , otherwise it will decrease each time you”ll activate the sequence by the negative number you’ve defined in the first row.


alter sequence customer_seq increment by -40;
select customer_seq.nextval from dual;
alter sequence customer_seq increment by 1;

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Tag Cloud

%d bloggers like this: