Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to auto generate primary key?

 
kahkean chor
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using mysql, i would like to auto generate the primary like this....

cus1
cus2
cus3
cus4........

follow by "cus"
can anyone help me?thanks in advanced
 
James Boswell
Bartender
Posts: 1051
5
Chrome Eclipse IDE Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have a requirement to generate the primary key this way?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic