bit的操作问题# Database - 数据库
s*8
1 楼
要更新数据库里的某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?
i tried the following and it works:
update sometable set somebit=somebit -1 where id=123456
is there any other solution?