官术网_书友最值得收藏!

Extended bit-wise operations

In MySQL 5.7, bit-wise operations and functions were working for BigInt (64-bit integer) data types only. We needed to pass BIGINT as an argument and it would return the result as BIGINT. In short, it had maximum range up to 64 bits to perform operations. A user needs to do conversion to the BIGINT data type in case they want to perform it on other data types. This typecasting was not feasible for data types larger than 64 bits as it would truncate the actual value, which resulted in inaccuracy of data.

MySQL 8 has improved bit-wise operations by enabling support for other binary data types such as Binary, VarBinary, and BLOB. This makes it possible to perform bit-wise operations on larger than 64-bit data. No more typecasting needed! This allows the taking of arguments and returning results larger than 64 bits.

主站蜘蛛池模板: 泰宁县| 平舆县| 东山县| 汉川市| 饶阳县| 巴东县| 台中市| 呼伦贝尔市| 三穗县| 金坛市| 峡江县| 晴隆县| 枣强县| 北辰区| 辽源市| 富阳市| 清远市| 高邮市| 安远县| 五指山市| 武汉市| 明光市| 金乡县| 余庆县| 清水县| 商南县| 于都县| 阿鲁科尔沁旗| 滨海县| 长乐市| 景德镇市| 秦皇岛市| 张家港市| 紫金县| 怀柔区| 荥经县| 陈巴尔虎旗| 香港| 启东市| 通辽市| 辽宁省|