SELECT A , B, C, D,
LENGTHB(A), LENGTHB(B), LENGTHB(C), LENGTHB(D)
FROM (
SELECT '가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가가' AS A
, '123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789123456789' AS B
, 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' AS C
, 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' AS D
FROM DUAL
) ;
LENGTHB 를 사용하여 문자열의 BYTE를 추출한건데요.
100 BYTE 가 넘는 문자열을 오른쪽 끝에서 절삭하여 100byte이내의 문자열을 리턴하고 싶습니다.
oracle 버전은 9i 입니다.