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
- 전자정부 표준프레임워크
- 방화벽
- Tibero
- 티베로
- Sring Functions and Operators
- String Functions and Date Operators
- 오라클
- String Function and Operators
- String Functions and Operators
- HTTP
- 윈도우
- Oracle
- Date and Time Function
- Data and Time Functions
- Date and Time Functions
- MySQL
- SVN
- 전자정부표준프레임워크
Archives
- Today
- Total
웹이야기
[MySQL] LPAD() 본문
MySQL 문자열 함수와 연산자
LPAD()
-
LPAD(str, len, padstr)
의 형태
Returns the string str, left-padded with the string padstr to a length of len characters. If str is longer than len, the return value is shortened to len characters.
mysql> SELECT LPAD('hi', 4, '??') ;
+---------------------+
| LPAD('hi', 4, '??') |
+---------------------+
| ??hi |
+---------------------+
1 row in set (0.00 sec)
mysql> SELECT LPAD('hi', 1, '??') ;
+---------------------+
| LPAD('hi', 1, '??') |
+---------------------+
| h |
+---------------------+
1 row in set (0.00 sec)
'D > MySQL' 카테고리의 다른 글
[MySQL] MAKE_SET() (0) | 2020.04.14 |
---|---|
[MySQL] LTRIM() (0) | 2020.04.14 |
[MySQL] LOWER() (0) | 2020.04.14 |
[MySQL] LOAD_FILE() (0) | 2020.04.14 |
[MySQL] LEFT() (0) | 2020.04.14 |
Comments