I hope I'm not mistaken, but I believe you *can* set the auto_increment number and pad it with leading zeroes. Take for instance a table created using the query below:
CREATE TABLE blah ( key int(12) unsigned zerofill NOT NULL auto_increment, data char(32) NOT NULL default '', PRIMARY KEY (key) ); To set the auto_increment number, you just insert the number just like any other query: INSERT INTO blah VALUES(000000000008, 'Lorem ipsum dolor'); To use auto increment, just set the value to zero or simply ignore it such that: INSERT INTO blah VALUES(0, 'de Finibus Bonorum et Malorum'); or INSERT INTO blah(data) VALUES('Gwapo ako, pero uwat gad la.'); Regards, [ simon.cpu ] >I don't believe you can do that, you'll have to pad the number in your >code. > >-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:207766 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54