I have a mySQL table with multiple columns (tinyint) with 0 or 1 values
I want to convert all these values into bits in a single integer column So a column named column1 will go to MSB another column will set 2nd bit etc...
How do I do it?
|
I have a mySQL table with multiple columns (tinyint) with 0 or 1 values I want to convert all these values into bits in a single integer column So a column named column1 will go to MSB another column will set 2nd bit etc... How do I do it? |
|||
|
|
Use logical shifts For example:
MySQL docs are here. |
|||||
|