Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/67.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在MySQL中部分更新blob或二进制类型_Mysql_Sql_Binary_Blob_Bit Manipulation - Fatal编程技术网

在MySQL中部分更新blob或二进制类型

在MySQL中部分更新blob或二进制类型,mysql,sql,binary,blob,bit-manipulation,Mysql,Sql,Binary,Blob,Bit Manipulation,我目前参与了一个项目,该项目要求在MySQL上的表的列中存储一块位。最初,该列的类型是MySQL位,我可以执行如下操作: UPDATE table SET column = column | b'0001' 以便在列中的某个位置设置位1 然而,由于大小的限制(最大64位),以及项目的需要,我尝试寻找另一种列类型,如BLOB或二进制,以实现我在示例中公开的内容 所以,问题是:如何在MySQL中设置列值中的特定位 提前谢谢,我会使用varchar作为类型和存储过程。你能详细说明你的答案吗?坦斯克!

我目前参与了一个项目,该项目要求在MySQL上的表的列中存储一块位。最初,该列的类型是MySQL位,我可以执行如下操作:

UPDATE table SET column = column | b'0001'
以便在列中的某个位置设置位1

然而,由于大小的限制(最大64位),以及项目的需要,我尝试寻找另一种列类型,如BLOB或二进制,以实现我在示例中公开的内容

所以,问题是:如何在MySQL中设置列值中的特定位


提前谢谢,

我会使用varchar作为类型和存储过程。你能详细说明你的答案吗?坦斯克!