You can not. Integer columns (bigint) do not store leading zeros (i.e., in a visual representation)
Instead of trying to keep the leading zero (using the varchar field), have the format of the representation (or any other) of the integer in a string in the format you need.
If you need to save something that is actually a string in a domain model (such as a phone number), use a string, not an integer.
source
share