Check out example codes for "mysql pad zeros". It will help you in understanding the concepts better.

Code Example 1

SELECT LPAD(last4, 4, '0') as last4 FROM numbers;

Learn ReactJs, React Native from akashmittal.com