aspose file tools*
The moose likes JDBC and the fly likes how to auto generate primary key? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "how to auto generate primary key? " Watch "how to auto generate primary key? " New topic
Author

how to auto generate primary key?

kahkean chor
Ranch Hand

Joined: Jan 26, 2013
Posts: 56
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

Joined: Nov 09, 2011
Posts: 973
    
    5

Do you have a requirement to generate the primary key this way?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to auto generate primary key?
 
Similar Threads
Autonumber generation in jboss
primary key on jboss
is it a must to have id for each mapping file ?
composite-id in Hibernate
upload file and into database