■ LPAD 함수 : 문자열 왼쪽 채우기

------------------------------------------------------------------------------------------------------------------------

SELECT LPAD('55'        , 10, '0'    ) FROM DUAL; -- '0000000055'

 

SELECT LPAD('12345678'  , 5 , '0'    ) FROM DUAL; -- '12345'

 

SELECT LPAD('HITOP TIES', 43, 'sell!') FROM DUAL; -- 'sell!sell!sell!sell!sell!sell!selHITOP TIES'

------------------------------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG

댓글을 달아 주세요