Name
UNCOMPRESSED_LENGTH()
Synopsis
UNCOMPRESSED_LENGTH(string
)
This function returns the number of characters contained in the given compressed string before it was compressed. You can compress strings using the COMPRESS() function. This function is available as of version 4.1 of MySQL. Here is an example:
SELECT UNCOMPRESSED_LENGTH(COMPRESS(essay)) FROM student_applications WHERE applicant_id = '1748';
Get MySQL in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.