MySQL UNCOMPRESS() function
UNCOMPRESS() function
MySQL uncompress() brings a compressed string back to its original condition. For compression, compress() function is used.
Syntax:
UNCOMPRESS(str)
Argument:
Name | Description |
---|---|
str | A string. |
Syntax Diagram:

MySQL Version: 8.0
Example:
Code:
SELECT UNCOMPRESS(COMPRESS('w3resource'));
Explanation:
The above MySQL statement returns w3resource.
Output:
mysql> SELECT UNCOMPRESS(COMPRESS('w3resource')); +------------------------------------+ | UNCOMPRESS(COMPRESS('w3resource')) | +------------------------------------+ | w3resource | +------------------------------------+ 1 row in set (0.00 sec)
Previous: SHA1()
Next: UNCOMPRESSED_LENGTH()
- Weekly Trends
- Python Interview Questions and Answers: Comprehensive Guide
- Scala Exercises, Practice, Solution
- Kotlin Exercises practice with solution
- MongoDB Exercises, Practice, Solution
- SQL Exercises, Practice, Solution - JOINS
- Java Basic Programming Exercises
- SQL Subqueries
- Adventureworks Database Exercises
- C# Sharp Basic Exercises
- SQL COUNT() with distinct
- JavaScript String Exercises
- JavaScript HTML Form Validation
- Java Collection Exercises
- SQL COUNT() function
- SQL Inner Join