Hai,
I'm new in jsp and servlets. So please help me...
i have a registration page in my project and want to generate unique and continous id
for every user so that they can log in with that id.
I just want the id to contain an alphabet with number (eg:-jk1234).
Is it possible to generate such kind of id for every users who got registered in my website??
if registered users are going to be saved in database then you can use "User" table primary key i.e. userId.
When new user gets added into database; it's id will be max(userId)+1.
sagar powar wrote:if registered users are going to be saved in database then you can use "User" table primary key i.e. userId.
When new user gets added into database; it's id will be max(userId)+1.
It depends how you implement !
The field can simply be set to AUTO_INCREMENT
JDBCSupport - An easy to use, light-weight JDBC framework -
What could go wrong in a swell place like "The Evil Eye"? Or with this tiny ad?
Gift giving made easy with the permaculture playing cards