Is there any SQL function to convert the number in two digit numbers so, I can get 01 for 1.
You need to convert the value into string. You can use LPAD() for this,
It would be:
SELECT LPAD(1, 2, '0');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With