COMPRESS(string_to_compress) compresses a string and returns the result as a binary string : COMPRESS : Encryption Compression Functions MySQL TUTORIALS


MySQL TUTORIALS » Encryption Compression Functions » COMPRESS »

 

COMPRESS(string_to_compress) compresses a string and returns the result as a binary string


mysql>
mysql> SELECT LENGTH(COMPRESS(REPEAT('a',1000)));
+------------------------------------+
| LENGTH(COMPRESS(REPEAT('a',1000))) |
+------------------------------------+
|                                 21 |
+------------------------------------+
row in set (0.02 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Encryption Compression Functions
» COMPRESS