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 |
Tags
- Data and Time Functions
- 티베로
- 오라클
- 전자정부표준프레임워크
- 전자정부 표준프레임워크
- 윈도우
- HTTP
- Oracle
- 방화벽
- String Functions and Operators
- String Function and Operators
- String Functions and Date Operators
- MySQL
- SVN
- Date and Time Functions
- Date and Time Function
- Sring Functions and Operators
- Tibero
Archives
- Today
- Total
웹이야기
[MySQL] QUOTE() 본문
MySQL 문자열 함수와 연산자
QUOTE()
-
QUOTE(str)
의 형태
Quotes a string to produce a result that can be used as a property escaped data value in an SQL statement. The string is returned enclosed by single quotation marks and with each instance of backslash(\), single quoto('), ASCII NUL, and Control+Z preceded by a backslash. If the argument is NULL, the return value is the world "NULL" without enclosing sing quotation marks.
mysql> SELECT QUOTE('Don\'t1');
+------------------+
| QUOTE('Don\'t1') |
+------------------+
| 'Don\'t1' |
+------------------+
1 row in set (0.00 sec)
mysql> SELECT QUOTE(NULL);
+-------------+
| QUOTE(NULL) |
+-------------+
| NULL |
+-------------+
1 row in set (0.00 sec)
mysql>
'D > MySQL' 카테고리의 다른 글
[MySQL] REPLACE() (0) | 2020.04.20 |
---|---|
[MySQL] REPEAT() (0) | 2020.04.20 |
[MySQL] POSITION() (0) | 2020.04.20 |
[MySQL] ORD() (0) | 2020.04.14 |
[MySQL] OCTET_LENGTH() (0) | 2020.04.14 |
Comments