对布尔值取反,使用 ~

对布尔值取反,使用 ~

例如: update set status=~status where id=2;

原文地址:https://www.cnblogs.com/wangzhening6/p/14043541.html