I have the following table A:
id ---- 1 2 12 123 1234
I need to left-pad the id values with zero\'s:
id
id ---- 0
-- Please look into these.
select FORMAT(1, 'd4'); select FORMAT(2, 'd4'); select FORMAT(12, 'd4'); select FORMAT(123, 'd4'); select FORMAT(1234, 'd4');
-- I hope these would help you