In my research I've looked at MySql insert statement to binary datatype? and https://dba.stackexchange.com/questions/904/mysql-data-type-for-128-bit-integers
But I can't seem to replicate their results.
I am converting the 64 squares of a chess board into a 64 bit binary number
Like so 000010010100010110100011011001000100011110001010001000100000110
I have a column in the mysql table of type binary(8)
My assumption being it needs to be of size 8 bytes because it is 64 bits, however it is claiming the input I am trying to provide is too large.
I can find very little resources on the binary data type only and I know I must be making some mistake, I assume it is trying to read each value as a char to something but I am not sure why.
Please assist me on how I may store this large number in my table.
BLOBdoes not represent a number, just binary data. They are typically used to store images, MP3 audio, video, etc.UNSIGNED BIGINTor aCHAR(64)could be easier.