# URL\_DECODE

解码给定的URL编码值。

此函数是[`URL_ENCODE`](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/url/url_encode.htm)的逆函数。

url\_decode(*值*) → varchar

对 URL 编码的 `value` 进行解码。此函数是 [`url_encode()`](https://help.qlik.com/zh-CN/cloud-services/Subsystems/Hub/Content/Sense_Hub/DataIntegration/Lakehouse/TransformationFunctions/url/url_encode.htm) 的逆函数。

## 语法

```
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 | 敏捷的棕色狐狸 |
| 注释 #5 | 注释 #5 |
| &$#\_line\_!123 | &$#\_line\_!123 |
| `''` | `''` |
| 词+词 词 | 词+词 词 |