Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: auto increment primary key format question

From: Ronald Klop <ronald-mailinglist(at)base.nl>
Date: Mon Aug 27 2007 - 07:04:23 EDT


There is a ZEROFILL option in mysql.
Then retreive your value with getString().

I didn't test this, but I think it should be the way to do it.

(In the end this is a presentation issue and not a data issue, so you could also fix in the presentation layer Ronald.

On Sun Aug 26 02:48:15 CEST 2007 javaNoob <noypi_baller@yahoo.com> wrote:
>
> i have a primary key that is auto increment. how do i make it 10 digits long?
>
> example: instead of '23', i want it to be '0000000023'
> --
> View this message in context: http://www.nabble.com/auto-increment-primary-key-format-question-tf4329657.html#a12331099
> Sent from the MySQL - Java mailing list archive at Nabble.com.
>
>
> --
> MySQL Java Mailing List
> For list archives: http://lists.mysql.com/java
> To unsubscribe: http://lists.mysql.com/java?unsub=ronald-mailinglist@base.nl
>
Received on Mon Aug 27 07:04:28 2007

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 10:14:15 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library