UNCOMPRESS

Sintassi

UNCOMPRESS(stringa_da_decomprimere)

Spiegazione

Decomprime una stringa che è stata compressa con la funzione COMPRESS(). Se l'argomento non è un valore compresso, il risultato è NULL. Questa funzione richiede che MariaDB sia stata compilata con una libreria di compressione come zlib. Altrimenti, il valore restituito sarà sempre NULL.

Esempi

SELECT UNCOMPRESS(COMPRESS('a string'));
+----------------------------------+
| UNCOMPRESS(COMPRESS('a string')) |
+----------------------------------+
| a string                         |
+----------------------------------+
1 row in set (0.00 sec)

SELECT UNCOMPRESS('a string');
+------------------------+
| UNCOMPRESS('a string') |
+------------------------+
| NULL                   |
+------------------------+
1 row in set, 1 warning (0.00 sec)

MariaDB [(none)]> 

Commenti

Sto caricando i commenti......
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.