• Post Reply Bookmark Topic Watch Topic
  • New Topic

inserting sequences values

 
Aravind Prasad
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers..
i'm doing a project in JSP oracle.. and
in some point i used a sequence.. for generating the id..
when i create a new user.. with name "aravind" and password "prasad"

the valeues are inserted in to the table as
----------------------------------------------
id name password
----------------------------------------------
1 aravind prasad
----------------------------------------------

when i create another user the id will be 2 and so on..
now.... after some times.. i came and created a user and the id was showing 51.. i don't know how it comes.

please help me ranchers. what to do now!!

thanks in advace..
regards
Aravind
 
stu derby
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And your problem is what, exactly? That you've got 51 ids? Or that you've got less than 51 ids, but the latest user has id number 51?
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!