ID EN
Encryption and Compression Functions

UNCOMPRESSED_LENGTH(compressed_string)

MySQL 8.4

Returns the length that the compressed string had before being compressed. Returns NULL if compressed_string is NULL.

Syntax

MYSQL
SELECT UNCOMPRESSED_LENGTH(COMPRESS(REPEAT('a',30)));
30

Examples

Example
MYSQL
SELECT UNCOMPRESSED_LENGTH(COMPRESS(REPEAT('a',30)));
30