Skip to main content
Version: V1.0.0

COMPRESS

Syntax

COMPRESS(str)

Description

Compresses a string and returns the result as a binary string. You can use the UNCOMPRESS function to decompress the result.

Examples

SELECT COMPRESS('abc');
+-----------------+
| COMPRESS('abc') |
+-----------------+
| x?KLJ M' |
+-----------------+
1 row in set (0.001 sec)