Jump to content

How to set Id to be a 4-digit ID (auto-increment)


pioneerx01

Recommended Posts

In MySQL my table has auto increment ID for each record, fairly straight forward.

How do I set this ID number to be always 4-digit (I am never going to go over 9999 in this table)?

So, record 1 is 0001, record 135 is 0135, and so one... I did not find a really definite answer in Google.

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.