dumdumsareyum Posted February 29, 2008 Share Posted February 29, 2008 Hi! Is there a way when I create a column that is a serial ID for it to format it like "000001" (however many places i want shown) instead of starting with just "1"? Thanks! Quote Link to comment Share on other sites More sharing options...
aschk Posted February 29, 2008 Share Posted February 29, 2008 I think you need to specify the column to be ZEROFILL when you create the table. Quote Link to comment Share on other sites More sharing options...
fenway Posted February 29, 2008 Share Posted February 29, 2008 Don't mess up your IDs in the DB... format this on the way out with LPAD(). Quote Link to comment Share on other sites More sharing options...
aschk Posted February 29, 2008 Share Posted February 29, 2008 Good call fenway. A much better solution. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.