띠

필드 내용에서 특정문자열을 기준으로 문자열 자르기

· 2015-10-29 (목) 17:27:38 · 2820
  •            SUBSTRING_INDEX(str,delim,count)

    Returns the substring from string str before count occurrences of the delimiter delim. If count is positive, everything to the left of the final delimiter (counting from the left) is returned. If count is negative, everything to the right of the final delimiter (counting from the right) is returned. SUBSTRING_INDEX() performs a case-sensitive match when searching for delim.

    Press CTRL+C to copy
    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.

 

 

이렇게 좋은 기능이 있는지 처음 알았네요.

 

특정 필드를 전체 업데이트 하거나 할때 매우 유용하겠어요.

 

 

댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,187건
+
제목 글쓴이 날짜 조회
15-11-05 조회 2,895
15-11-05 조회 3,763
15-11-04 조회 2,862
15-11-04 조회 2,912
15-11-04 조회 2,792
15-11-04 조회 3,000
15-11-04 조회 3,421
15-11-04 조회 3,255
15-11-03 조회 3,167
15-11-03 조회 3,576
15-11-03 조회 3,122
15-11-02 조회 3,179
15-11-02 조회 2,749
15-11-02 조회 3,069
15-11-02 조회 2,807
15-11-02 조회 2,906
15-11-01 조회 3,051
15-10-31 조회 2,663
15-10-30 조회 3,384
15-10-30 조회 2,761
15-10-29 조회 3,101
15-10-29 조회 2,821
15-10-27 조회 2,931
15-10-26 조회 3,420
15-10-23 조회 2,882
15-10-23 조회 2,916
15-10-21 조회 2,682
15-10-19 조회 4,230
15-10-19 조회 3,327
15-10-18 조회 2,980
15-10-17 조회 3,042
15-10-17 조회 2,863
15-10-17 조회 2,992
15-10-15 조회 3,673
15-10-14 조회 3,559
15-10-07 조회 4,324
15-10-06 조회 3,409
15-10-05 조회 3,256
15-10-05 조회 3,656
15-10-05 조회 2,893
15-10-05 조회 2,982
15-10-05 조회 2,931
15-10-04 조회 2,774
15-10-04 조회 2,923
15-10-04 조회 3,062
15-10-03 조회 3,808
15-10-03 조회 2,904
15-10-02 조회 3,329
15-10-02 조회 3,185
15-10-02 조회 3,157
15-10-02 조회 2,857
15-10-01 조회 2,924
15-10-01 조회 2,968
15-10-01 조회 2,850
15-10-01 조회 2,804
15-10-01 조회 3,143
15-09-30 조회 2,745
15-09-30 조회 2,870
15-09-30 조회 2,953
15-09-30 조회 2,940
15-09-25 조회 3,576
15-09-25 조회 3,321
15-09-24 조회 2,884
15-09-24 조회 2,820
15-09-24 조회 3,293
15-09-23 조회 3,284
15-09-23 조회 2,737
15-09-23 조회 2,828
15-09-23 조회 2,833
15-09-23 조회 2,836
15-09-23 조회 3,033
15-09-23 조회 2,979
15-09-22 조회 5,031
15-09-21 조회 3,013
15-09-21 조회 2,770
15-09-21 조회 2,781
15-09-21 조회 2,838
15-09-18 조회 4,406
15-09-17 조회 4,002
15-09-16 조회 3,379
15-09-14 조회 3,656
15-09-14 조회 3,810
15-09-13 조회 3,849
15-09-11 조회 3,039
15-09-11 조회 2,732
15-09-09 조회 3,369
15-09-08 조회 2,816
15-09-05 조회 2,868
15-09-04 조회 2,903
15-09-02 조회 3,535
15-09-02 조회 3,292
15-09-02 조회 3,044
15-09-01 조회 3,367
15-08-31 조회 7,745
15-08-29 조회 2,985
15-08-29 조회 4,234
15-08-28 조회 3,337
15-08-28 조회 4,204
15-08-25 조회 3,833
15-08-24 조회 2,893