---
title: "URLENCODE"
description: "Invantive UniversalSQL\u306EURLENCODE SQL\u95A2\u6570\u306F\u3001URL\u3067\u4F7F\u7528\u3059\u308B\u305F\u3081\u306B\u30C6\u30AD\u30B9\u30C8\u3092\u30A8\u30F3\u30B3\u30FC\u30C9\u3057\u307E\u3059\u3002"
language: ja
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/ja/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:29Z
license: https://documentation.invantive.eu/ja/
---

## 構文
```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))
```

## 目的
`URLENCODE` SQL関数はURLをエンコードします。

参照：[[URLDECODE]]。

パラメータ:
- Url (`varchar2`): エンコードするURL。

戻り値: エンコードされたURL。

## 例
次の例はURLをエンコードします:
```sql
select urlencode('https://www.nu.nl/?page%2dxx')

---------------------------------------
https%3A%2F%2Fwww.nu.nl%2F%3Fpage%252dxx
```
次の例では、入力が`null`であるため、`null`を取得します:
```sql
select urlencode(null)

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

```

