UNCOMPRESSED_LENGTH

2024-03-05 01:54:27  Updated

Syntax

UNCOMPRESSED_LENGTH(str)

Purpose

UNCOMPRESSED_LENGTH() returns the length of the compressed string before it is compressed by using the COMPRESS() function.

Examples

obclient [test]> SELECT UNCOMPRESSED_LENGTH(COMPRESS('abc'));
+--------------------------------------+
| UNCOMPRESSED_LENGTH(COMPRESS('abc')) |
+--------------------------------------+
|                                    3 |
+--------------------------------------+
1 row in set

Contact Us