URL_DECODE
지정된 URL 인코딩 값을 이스케이프 해제합니다.
이 함수는 URL_ENCODE의 역함수입니다.
url_decode(값) → varchar
URL 인코딩된 value를 이스케이프 해제합니다. 이 함수는 url_encode()의 역함수입니다.
문법
URL_DECODE(VALUE)
인수
VALUE
유형: string
URL 인코딩된 값.
반환 값
유형: string
디코딩된 VALUE.
예
SELECT url_decode("The+quick+brown+fox") = "The quick brown fox" AND url_decode("Comment+%235") = "Comment #5" AND url_decode('%26%24%23_line_%21123') = "&$#line!123" AND url_decode('') = '' AND url_decode("word%2Bword++word") = "word+word word""
| VALUE | 출력 |
|---|---|
| The+quick+brown+fox | 빠른 갈색 여우 |
| 주석+%235 | 주석 #5 |
| %26%24%23_line_%21123 | &$#_line_!123 |
''
|
''
|
| 단어%2B단어++단어 | 단어+단어 단어 |