invantive documentationpart of invantive cloud
Invantive Support ForumsLog In / Sign Up

URLDECODE

Syntax

%%{init: {
  'theme': 'base',
  'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
  'themeVariables': {
    'fontSize': '11px',
    'fontFamily': 'Arial'
  }
}}%%
flowchart LR
    Start((START)) --> URLDECODE[URLDECODE]:::quoted
    URLDECODE --> End((END))

Purpose

The URLDECODE SQL function decodes a URL.

See also URLENCODE.

Parameters:

  • Url (varchar2): URL to decode.

Returns: the decoded URL.

Examples

The following example decodes an URL-encoded text:

select urldecode('https%3a%2f%2fwww.nu.nl%2f%3fpage%252dxx')

----------------------------
https://www.nu.nl/?page%2dxx

The following example retrieves null since the input is null:

select urldecode(null)

----------------------------