Convert 99999999 into 99999-999.
I do not know the syntax.
I was thinking to useFORMAT() function — but I'm working with INT instead of DECIMAL.
Select city.ZipCode As zipCode
From app_cities As city
Where city.Id = 1
So, that's it. Someone has any idea to me?
Use INSERT()
select insert(ZipCode , 6, 0, '-') As zipCode
from app_cities As city
where Id = 1
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