기본 콘텐츠로 건너뛰기 보완적인 콘텐츠로 건너뛰기

URL_ENCODE

This function escapes the given input value by encoding it so that it can be safely included in URL query parameter names and values:

  • Alphanumeric characters are not encoded.
  • The characters ., -, * and _ are not encoded.
  • The ASCII space character is encoded as +.
  • All other characters are converted to UTF-8 and the bytes are encoded as the string %XX where XX is the uppercase hexadecimal value of the UTF-8 byte.

문법

URL_ENCODE(VALUE)

인수

VALUE

Type: string

The value to encode.

Returns

Type: string

The encoded VALUE.


VALUE 출력
The quick brown fox The+quick+brown+fox
Comment #5 Comment+%235
&$#_line_!123 %26%24%23_line_%21123
'' ''
word+word word word%2Bword++word

예제

SQL

//url_example1
        URL_ENCODE('word+word  word')
//url_example2
        URL_ENCODE('&$#_line_!123')

Query result

url_example1 url_example2
word%2Bword++word %26%24%23_line_%21123

이 페이지가 도움이 되었습니까?

이 페이지 또는 해당 콘텐츠에서 오타, 누락된 단계 또는 기술적 오류와 같은 문제를 발견하면 알려 주십시오!