Khazret Sapenov wrote:
> I have read the link, however it's unclear what is the "specific reason".
The link just demonstrates that there exists a person who has that
requirement to pad integers with zeroes, and the ZEROFILL attribute was
the solution.
I think it's just a convenience. A programmer could format the value
that way after fetching it from the database, but apparently it's a
common enough task that MySQL can do it for you if you need it.
As for why someone would want this, it can help in some documents to
make integers of uniform length, so that they align with each other
regardless of being right- or left-justified.
Regards,
Bill K.<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: ZEROFILL