由买买提看人间百态

topics

全部话题 - 话题: somebit
(共0页)
s****8
发帖数: 4
1
来自主题: Database版 - bit的操作问题
要更新数据库里的某bit的值, 如果值是0,需要变成1;如果值是1,需要变成0
i tried the following and it works:
update sometable set somebit=somebit -1 where id=123456
is there any other solution?
(共0页)