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 / lova raju allumalla
WE CANNOT ALTER A SEQUENCE START NUMBER BUT IF U WANT TO
CHANGE THE EXISTING DATA IN THE TABLE THEN
ASSUME U HAVE EMPLOYEE TABLE WHERE EMPNO BEGINS WITH 100
UPDATE EMPLOYEE SET EMPNO = EMPNO + 1 WHERE EMPNO IN
(SELECT EMPNO FROM EMPLOYEE);
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
how to shut down the server with 'mysqladmin'? : Sql dba
What is the use of non clustered index?
What is consistency?
What are sql procedures?
Enlist the characteristics of pl/sql?
Can I create table without primary key?
What is sql partition?
What is pivot query?
What is sql engine in oracle?
How do I clear the screen in sql plus?
What is execute immediate?
What is the use of sql trace?
What is sql profiler in oracle?
what is oltp (online transaction processing)? : Sql dba
Are dml statements autocommit?