---
title: "URLENCODE"
description: "La funci\u00F3n SQL URLENCODE de Invantive UniversalSQL codifica un texto para su uso en una URL."
language: es
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/es/docs/invantive-universalsql/grammar/sql-functions/urlencode
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/urlencode
updated: 2026-12-04T14:43:24Z
license: https://documentation.invantive.eu/es/
---

## Sintaxis
```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))
```

## Propósito
La función SQL `URLENCODE` codifica una URL.

Véase también [[URLDECODE]].

Parámetros:
- URL (`varchar2`): URL que se va a codificar.

Devuelve: la URL codificada.

## Ejemplos
En el siguiente ejemplo se codifica una URL:
```sql
select urlencode('https://www.nu.nl/?page%2dxx')

---------------------------------------
https%3A%2F%2Fwww.nu.nl%2F%3Fpage%252dxx
```
En el siguiente ejemplo se recupera `null`, ya que la entrada es `null`:
```sql
select urlencode(null)

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

```

