There is a sequence with min value 100.
I want to alter this sequence to min value as 101.
If the table has already data in the sequence column as
100,101,102...
Is it possible to do so ?
Answer Posted / pradeep
Or other way around can be rename the current sequence and
create new sequence with the desired values;
SQL> CREATE SEQUENCE SEQ_TET INCREMENT BY 1 START WITH 100
MAXVALUE 1000000 MINVALUE 99;
Sequence created.
SQL> rename SEQ_TET to seq_test;
Table renamed.
SQL> select * from user_sequences;
SEQUENCE_NAME MIN_VALUE MAX_VALUE
INCREMENT_BY C O CACHE_SIZE
------------------------------ ---------- ---------- -------
----- - - ----------
LAST_NUMBER
-----------
SEQ_TEST 99
1000000 1 N N 20
100
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are string functions in sql?
What is type and rowtype in pl sql?
what tools available for managing mysql server? : Sql dba
what is self-join? : Sql dba
Why is theta join required?
What is the mutating table and constraining table?
How do I make sql search faster?
Is truncate ddl or dml?
what are all types of user defined functions? : Sql dba
What is a schema sql?
Describe sql comments?
what is a scheduled jobs or what is a scheduled tasks? : Sql dba
How do I enable sql encryption?
Is primary key a clustered index?
how can we destroy the session, how can we unset the variable of a session? : Sql dba