sql server - How to negate a bit column value in SQL -


how update table column in order revert value(set true if value false , false true! null remains null).

please exclude solutions 1 uses case when or iff() want like

update mytable set iseditable = !iseditable 

you can use bitwise not operator:

update mytable set iseditable = ~iseditable 

Comments

Popular posts from this blog

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -