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 |
Tags
- SVN
- Sring Functions and Operators
- Date and Time Functions
- String Function and Operators
- 전자정부표준프레임워크
- Date and Time Function
- 윈도우
- String Functions and Operators
- String Functions and Date Operators
- HTTP
- 오라클
- Oracle
- 티베로
- 방화벽
- Data and Time Functions
- Tibero
- MySQL
- 전자정부 표준프레임워크
Archives
- Today
- Total
웹이야기
[MySQL] RPAD() 본문
MySQL 문자열 함수와 연산자
RPAD()
-
RPAD(str, len, padstr)
의 형태
Returns the string str, right-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 RPAD('hello', '10', '?' );
+---------------------------+
| RPAD('hello', '10', '?' ) |
+---------------------------+
| hello????? |
+---------------------------+
1 row in set (0.00 sec)
mysql> SELECT RPAD('hello', '2', '?' );
+--------------------------+
| RPAD('hello', '2', '?' ) |
+--------------------------+
| he |
+--------------------------+
1 row in set (0.00 sec)
'D > MySQL' 카테고리의 다른 글
[MySQL]SPACE() (0) | 2020.06.11 |
---|---|
[MySQL] RTRIM() (0) | 2020.04.20 |
[MySQL] RIGHT() (0) | 2020.04.20 |
[MySQL] REVERSE() (0) | 2020.04.20 |
[MySQL] REPLACE() (0) | 2020.04.20 |
Comments