민서네집

[Oracle] 공백 제거하기 본문

Database/Oracle

[Oracle] 공백 제거하기

브라이언7 2019. 12. 3. 21:27

Oracle에서 TRIM() 으로는 탭 문자가 제거되지 않았다.

 

찾아본 가장 간단하면서 좋은 방법은 다음과 같았다.

 

REGEXP_REPLACE(text,'(^[[:space:]]*|[[:space:]]*$)')

REGEXP_REPLACE(text,'(^[[:space:]]*|[[:space:]]*$)')

 

[출처] https://stackoverflow.com/questions/2268860/trim-whitespaces-new-line-and-tab-space-in-a-string-in-oracle/2274942

Comments