leftpad in sql code example
Example 1: oracle sql pad left zeros
SHOW LPAD('column_name',14,'0')
000column_name
Example 2: tsql pad left
declare @T table(id int)
insert into @T values
(1),
(2),
(12),
(123),
(1234)
select right('0000'+convert(varchar(4), id), 4)
from @T