ZLIB_DECOMPRESS
Syntax
%%{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))
Anwendung
Die SQL-Funktion ZLIB_DECOMPRESS dekomprimiert ein blob mithilfe des Zlib-Algorithmus.
Siehe auch ZLIB_COMPRESS und UNGZIP.
Parameter:
- Eingabe (
blob): Dasblob, das entpackt werden soll.
Gibt das dekomprimierte blob zurück.
Beispiele
Im folgenden Beispiel wird ein mit Zlib komprimiertes blob entpackt und der ursprüngliche Text abgerufen:
select blob_to_text(zlib_decompress(zlib_compress(ascii_to_blob('ACME'))))
-------------------
ACME
Im folgenden Beispiel wird ein mit Zlib komprimiertes blob entpackt und das Ergebnis in Text umgewandelt:
select to_char(zlib_decompress('eJwLycgsVgCiRIWy1KJKhZz8vHSFktSKEoWSfCBdDKQzUhWifDKTFJLzcwuKUouLM/PzFHJTSzLyUwCN0xX5'))
-------------------
This is a very long text to test the ZLib compression method