Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- php
- Oracle
- replace
- i18n
- mariadb
- 문자열자르기
- install
- Eclipse
- TPL
- jQuery
- 한글 깨짐
- RabbitMQ
- Python
- centos
- MySQL
- Postfix
- 부모창
- docker
- SVN
- ubuntu
- Selectbox
- 천단위
- smarty
- 일괄변경
- yum
- 확장자
- TextBox
- random
- JavaScript
Archives
- Today
- Total
wilson's story
문자열 잘라서 가져오기 본문
반응형
--mysql SELECT IF(LENGTH(content) > 50, CONCAT(SUBSTRING(content, 1, 50), '....'), content) content, FROM test_table order by id DESC --content 라는 컬럼에서 50보다 길면 뒤에 '...' 을 붙여서 출력
반응형