Develop/DATABASE
오라클)문자 함수 - INSTR
걸어다니는 종합병원
2022. 9. 25. 00:18
반응형
INSTR 함수 - INSTR(string, substring [, position [, occurence]])
string의 position에서 우측으로 occurrence번째 substring의 시작 위치를 반환.
position과 occurrence의 기본값은 1.
찾는 값이 없거나 position이 string의 길이보다 긴 경우에는 0을 반환.
position이 음수인 경우에는 position에서 좌측으로 substring을 검색
c2은 SUBSTR(1+1, 3-1-1)이다. SUBSTR(2,1)
c3는 3+1, 5-3-1이므로 SUBSTR(4,1) 이다.
반응형