---
title: "ZLIB_DECOMPRESS"
description: "ZLIB_DECOMPRESS SQL\u95A2\u6570\u306F\u3001Zlib \u30A2\u30EB\u30B4\u30EA\u30BA\u30E0\u3092\u4F7F\u7528\u3057\u3066 BLOB \u3092\u89E3\u51CD\u3057\u307E\u3059\u3002"
language: ja
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/ja/docs/invantive-universalsql/grammar/sql-functions/zlib-decompress
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/zlib-decompress
updated: 2026-12-04T14:58:32Z
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)) --> ZLIB_DECOMPRESS[ZLIB_DECOMPRESS]:::quoted
    ZLIB_DECOMPRESS --> End((END))
```

## 目的
`ZLIB_DECOMPRESS` SQL関数は、Zlib アルゴリズムを使用して `blob` を解凍します。

関連項目：[[ZLIB_COMPRESS]]および[[UNGZIP]]。

パラメータ:
- input (`blob`): 解凍する `blob`。

戻り値: 解凍された `blob`。

## 例
次の例では、Zlib で圧縮された `blob` を解凍し、元のテキストを取得します:
```sql
select blob_to_text(zlib_decompress(zlib_compress(ascii_to_blob('ACME'))))

-------------------
ACME
```
次の例では、Zlib で圧縮された `blob` を解凍し、結果をテキストに変換します:
```sql
select to_char(zlib_decompress('eJwLycgsVgCiRIWy1KJKhZz8vHSFktSKEoWSfCBdDKQzUhWifDKTFJLzcwuKUouLM/PzFHJTSzLyUwCN0xX5'))

-------------------
This is a very long text to test the ZLib compression method
```

