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

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.

主站蜘蛛池模板: 扶绥县| 涟水县| 玉田县| 高邑县| 墨玉县| 江达县| 阆中市| 荣成市| 安国市| 南雄市| 阿城市| 青海省| 黄龙县| 武定县| 富宁县| 克什克腾旗| 和顺县| 饶平县| 秦安县| 苍溪县| 铜川市| 西安市| 五台县| 常熟市| 陇川县| 德保县| 武强县| 北碚区| 邯郸市| 额济纳旗| 许昌县| 长武县| 凤台县| 南召县| 丹凤县| 蒲江县| 阳曲县| 叶城县| 沁水县| 华安县| 浦北县|