Possible field types:
BINARY(16)
CHAR(32)
BIGINT + BIGINT
How do I decide which one to use?
Possible field types:
BINARY(16)
CHAR(32)
BIGINT + BIGINT
How do I decide which one to use?
An MD5 hash is typically expressed as a 32 digit hex number. CHAR(32) will work just fine.
im no good at MySql but a hash is nomaly a byte array so BINARY(16) should be the best, but it might be harder to write custom sql questions against Binary if thats needed?
If the column is indexed and you know what you're doing, BINARY(16) for performance reasons.
Otherwise, CHAR(32) is fine. Make sure the column uses the ascii charset though. (ascii_bin for example)