Need to reset the value of sequence in Oracle

后端 未结 4 2104
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-28 13:45

I\'m working with Spring and Hibernate to develop web applications in Java. Let\'s assume that I have a table. When I delete some records from this table, sometimes I need t

4条回答
  •  感动是毒
    2020-11-28 14:29

    The following also works (increases your sequence value by 100):

    select my_sequence.nextval from dual connect by level <= 100;
    

提交回复
热议问题