File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Problem of Finding Max of Alphanumeric Primary Key Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Problem of Finding Max of Alphanumeric Primary Key" Watch "Problem of Finding Max of Alphanumeric Primary Key" New topic
Author

Problem of Finding Max of Alphanumeric Primary Key

sandeep kokane
Greenhorn

Joined: Nov 29, 2000
Posts: 19
Hi All,
I need your Help Urgently. In my project I want to insert record to a table which have alphanumeric primary key.
(Eg. In M_Employee table Primary column Emp_no having records Emp001, Emp002 etc)
How Can i find the max of the that primary column. As my prject is Database independent So I cant take the help of the Database functions. I want to do it with Java,JDBC. Please Give me the solution as soon as posible.
Thanks in Advance.
Regards,
Sandeep Kokane
Software Engineer.
 
 
subject: Problem of Finding Max of Alphanumeric Primary Key
 
Similar Threads
Database Design issue
How can I set my own table row key for Trinidad's table tag?
How can I set my own table row key for Trinidad's table tag?
how to make the column unique?
how to retrieve the new ID of the auto_increment column