RTRIM
RTRIM (오른쪽 공백 제거)
RTRIM 함수는 문자열 오른쪽의 공백을 제거해요.
출처: 문서
본문
RTRIM(col) 형식으로 사용해요.
사용 예시
SELECT ' Pinot with spaces ' AS notTrimmed,
rtrim(' Pinot with spaces ') AS trimmed
FROM ignoreMe
| notTrimmed | trimmed |
|---|---|
" Pinot with spaces " |
" Pinot with spaces" |