OraQA

Oracle Question and Answer

  • Do you have a solution to a problem? Do you have an unanswered question? Login and share it with the Oracle community. More...

Oracle News


Entries RSS feed

Comments RSS feed

Regarding Sequence Numbers

August 3rd, 2008 By ragunathansd

Suppose I have inserted, say 10 rows into a table using sequence numbers (1-10). If I delete the 5th record from the table. Will the sequence number from 6th record get affected or will it be the same?

If it is same then please suggest some way so that the remaining records get updated, ie it should be (1-9) in sequence not (1-4 & 6-10).

2 Responses to “Regarding Sequence Numbers”

  1. Eddie Awad Says:

    Are you inserting sequence numbers, from a sequence database object, into the table’s primary key? Why do you care about having, or not having, gaps in the sequence?

  2. ragunathansd Says:

    I am not inserting sequence numbers from database. I need to populate the data in a grid. If a user deletes a row from the grid, the consecutive rows should be updated so that the sequence remains the same. I dont want the gap in the sequence.

    Can anyone help?

Leave a Reply

You must be logged in to post a comment.

RSS feed for comments on this question