CRC32
Syntax
CRC32([par,]expr)
Description
Computes a cyclic redundancy check (CRC) value and returns a 32-bit unsigned value. The result is NULL
if the argument is NULL
. The argument is expected to be a string and (if possible) is treated as one if it is not.
Uses the alternate Castagnoli polynomia.
Often, CRC is computed in pieces. To facilitate this, there's an optional parameter: CRC32('MariaDB')=CRC32(CRC32('Maria'),'DB').
Examples
SELECT CRC32(CRC32('Maria'),'DB');
+----------------------------+
| CRC32(CRC32('Maria'),'DB') |
+----------------------------+
| 4227209140 |
+----------------------------+
See Also
This page is licensed: GPLv2, originally from fill_help_tables.sql
Last updated
Was this helpful?