oracle sql pad left zeros
SHOW LPAD('column_name',14,'0')
000column_name
oracle sql pad left zeros
SHOW LPAD('column_name',14,'0')
000column_name
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us