Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

inserting sequences values

 
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 333
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic