---
title: "ZSTD_DECOMPRESS"
description: "ZSTD_DECOMPRESS SQL-funktio purkaa BLOB-arvon k\u00E4ytt\u00E4en Zstandard-algoritmia."
language: fi
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/fi/docs/invantive-universalsql/grammar/sql-functions/zstd-decompress
original: https://documentation.invantive.eu/en/docs/invantive-universalsql/grammar/sql-functions/zstd-decompress
updated: 2026-12-04T14:59:21Z
license: https://documentation.invantive.eu/fi/
---

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

## Tarkoitus
`ZSTD_DECOMPRESS` SQL-funktio purkaa `blob` käyttäen Zstandard-algoritmia.

Katso myös [[ZSTD_COMPRESS]] ja [[ZLIB_DECOMPRESS]].

Parametrit:
- input (`blob`): purettava `blob`.

Palauttaa: puretun `blob`.

## Esimerkkejä
Seuraava esimerkki purkaa Zstandard-pakatun `blob` ja palauttaa alkuperäisen tekstin:
```sql
select blob_to_text(zstd_decompress(zstd_compress(ascii_to_blob('ACME'))))

-------------------
ACME
```
Seuraava esimerkki purkaa Zstandard-pakatun `blob` ja muuntaa tuloksen tekstiksi:
```sql
select to_char(zstd_decompress('KLUv/SA8vQEAwsMMFLAnHd2OTKNtYpi2ISYmwTDAZCECxao8IzN3TMax4dILZvUeu/Ui7ASy4iTxWPjMZwoIAA=='))

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

