简体   繁体   中英

Mysql Binary data type

So my binary is: 0011010101100100001101000011000100110100001100000011001001100001011000100110001100110100011000100011001001100001001101110011011001100010001110010011011100110001001110010110010000111001001100010011000100110000001100010011011101100011001101010011100100110010

Md5: 5d41402abc4b2a76b9719d911017c592

Password: hello

I know the datatype is BINARY in mysql but what size do i need to make it? what do i fill in for the x?

BINARY(x)

According to this , you can predict the size of a md5.

If you don't want to, it seems like VARBINARY type is what you're looking for.

根据手册

[...] the length for BINARY and VARBINARY is a length in bytes rather than in characters.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM