티스토리 뷰

🌈 MsSql

CHARINDEX

James Wetzel 2022. 8. 9. 17:35

This function searches for one character expression inside a second character expression, returning the starting position of the first expression if found.

 

특정 문자열의 시작 위치 값을 반환합니다.

DECLARE @document VARCHAR(64);  
SELECT @document = 'Reflectors are vital safety' +  
                   ' components of your bicycle.';  
SELECT CHARINDEX('bicycle', @document);  
GO
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함