I need MySQL to store numbers in a integer field and maintain leading zeros. I cannot use the zerofill option as my current field is Bigint(16) and numbers can vary in amoun
Change the structure of the field and make the Attributes UNSIGNED_ZEROFILL to keep the zeros.
UNSIGNED_ZEROFILL
But you should be careful to the Length of the field, because it's gonna return all the rest numbers to zeros so put the length of your field