Collections:
UNCOMPRESSED_LENGTH() - Uncompressed Data Length
How to calculate the original data length of a compressed byte string using the UNCOMPRESSED_LENGTH() function?
✍: FYIcenter.com
UNCOMPRESSED_LENGTH(str) is a MySQL built-in function that
returns the original data length of a given compressed byte string.
For example:
SET @bin = x'37000000789C738BF44C4ECD2B492DD24BCECFD57123960700279D13DD'; SELECT LENGTH(@bin), UNCOMPRESSED_LENGTH(@bin); -- +--------------+---------------------------+ -- | LENGTH(@bin) | UNCOMPRESSED_LENGTH(@bin) | -- +--------------+---------------------------+ -- | 29 | 55 | -- +--------------+---------------------------+
Reference information of the UNCOMPRESSED_LENGTH() function:
UNCOMPRESSED_LENGTH(bin): len Returns the original data length of a given compressed byte string. Arguments, return value and availability: bin: Required. The compressed byte string to be examined. len: Return value. The number of bytes of the original byte string. Available since MySQL 4.1.
Related MySQL functions:
⇒ VALIDATE_PASSWORD_STRENGTH() - Password Strength Test
⇐ UNCOMPRESS() - Uncompressing Data
2024-12-18, 2041🔥, 0💬
Popular Posts:
How To Verify a User name with SQLCMD Tool in SQL Server? The quickest way to verify a user name in ...
How To Count Rows with the COUNT(*) Function in SQL Server? If you want to count the number of rows,...
What is sqlservr.exe - Process - SQL Server (SQLEX?PRESS) in SQL Server? Process sqlservr.exe is the...
What Are the Differences between BINARY and VARBINARY in MySQL? Both BINARY and VARBINARY are both b...
Why I Can Not Enter 0.001 Second in DATETIME values in SQL Server Transact-SQL? If you enter millise...