v.19.10New Feature

Support for Crc32 Function (with Behaviour Exactly as in Mysql or Php)

Support for crc32 function (with behaviour exactly as in MySQL or PHP). Do not use it if you need a hash function. #5661 (Remen Ivan)
Add crc32 function with MySQL/PHP-compatible behavior.

Why it matters

Provide a crc32 function that outputs checksums exactly matching those from MySQL and PHP, enabling compatibility for checksum verification and interoperability. This is not intended for hashing purposes.

How to use it

Use the crc32 function in your queries as follows:

SELECT <code>crc32</code>(column_name) FROM table_name;


Note: Use this function when you need a checksum compatible with MySQL or PHP implementations, but avoid it for cryptographic hashing or general hash function needs.