s****8 发帖数: 4 | 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? | c*****d 发帖数: 6045 | | j*****n 发帖数: 1781 | 3 I tried in MSSQL, seems it is the best solution... |
|