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


Please Help Members By Posting Answers For Below Questions

What plvcmt and plvrb does in pl/sql?

1059


Explain some predefined exceptions.

778


What does closing a cursor do?

982


Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?

835


What is difference between sql and oracle?

775






how to create a test table in your mysql server? : Sql dba

684


what is a table in a database ? : Sql dba

750


Is oracel sql developer written in java?

837


What is an inconsistent dependency?

761


how many values can the set function of mysql take? : Sql dba

720


Is it possible to remove child records without removing master table records...the two having pk,fk relationship?

1000


How do I tune a sql query?

725


What is keys and its types?

747


What is the current version of sql?

731


how to convert numeric values to character strings? : Sql dba

778