UNCOMPRESS( )

This MySQL function returns the uncompressed string corresponding to the compressed string given, reversing the results of the COMPRESS( ) function.

Syntax

Below is the syntax for this command. Text within square brackets (i.e, [ and ] ) are optional. Choices are separated by bars (i.e, | ). Ellipses preceded by a comma indicates a repeating pattern. Ellipses before or after syntax are used to highlight a relevant except from the larger syntax. Text displayed in italic letters represent text that should be replaced with the specific names related to the database (e.g., column with the name of the column).

UNCOMPRESS(string)

Explanation

This function returns the uncompressed string corresponding to the compressed string given, reversing the results of the COMPRESS( ) function. It requires MySQL to have been compiled with a compression library (e.g., zlib). It returns NULL if the string is not compressed or if MySQL wasn't compiled with zlib. This function is available as of version 4.1.1 of MySQL.

Examples

SELECT UNCOMPRESS(essay)
FROM applications_archive
WHERE applicant_id = '1748';