MySQL NAND/NOR operations in Queries

老子叫甜甜 提交于 2019-12-01 23:45:45

You can just combine Not + And / Not + Or

for example

create table test( v1 bit, v2 bit ); 
insert into test values ( false, false), (false,true), (true,true), (true,false);

select v1, v2, not (v1 and v2) "nand", not (v1 or v2) "nor"
from test

http://sqlfiddle.com/#!2/0828b/3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!