SUBSTRING_INDEX(str,delim,count)Returns the substring from string
strbeforecountoccurrences of the delimiterdelim. Ifcountis positive, everything to the left of the final delimiter (counting from the left) is returned. Ifcountis negative, everything to the right of the final delimiter (counting from the right) is returned.SUBSTRING_INDEX()performs a case-sensitive match when searching fordelim.mysql> SELECT SUBSTRING_INDEX('www.mysql.com', '.', 2); -> 'www.mysql' mysql> SELECT SUBSTRING_INDEX('www.mysql.com', '.', -2); -> 'mysql.com'
This function is multibyte safe.
이렇게 좋은 기능이 있는지 처음 알았네요.
특정 필드를 전체 업데이트 하거나 할때 매우 유용하겠어요.
게시글 목록
| 번호 | 제목 |
|---|---|
| 12211 | |
| 12210 | |
| 12208 | |
| 12207 | |
| 12206 | |
| 12205 | |
| 20383 | |
| 12204 |
JavaScript
Fiddler - 데이타 송수신 상태 체크 프로그램
|
| 12203 | |
| 12202 |
PHP
php로 엑셀 만들기 입니다.
|
| 12201 | |
| 12199 | |
| 350 | |
| 12197 | |
| 12196 | |
| 12195 | |
| 12193 | |
| 12190 | |
| 12189 | |
| 12188 | |
| 12187 | |
| 12186 | |
| 12185 | |
| 12183 | |
| 12182 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기