---
title: "URLENCODE"
description: "The URLENCODE SQL function of Invantive UniversalSQL encodes a text for use in a URL."
language: cs
source_language: en
translation_state: pending
canonical: https://documentation.invantive.eu/cs/docs/invantive-universalsql/grammar/sql-functions/urlencode
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/urlencode
updated: 2026-12-04T14:37:26Z
license: https://documentation.invantive.eu/cs/
---

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

## Účel
The `URLENCODE` SQL function encodes a url.

Viz také [[URLDECODE]].

Parametry:
- Url (`varchar2`): url to encode.

Returns: the encoded url.

## Příklady
The following example encodes an URL:
```sql
select urlencode('https://www.nu.nl/?page%2dxx')

---------------------------------------
https%3A%2F%2Fwww.nu.nl%2F%3Fpage%252dxx
```
The following example retrieves `null` since the input is `null`:
```sql
select urlencode(null)

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

```

