【发布时间】:2013-06-01 02:10:19
【问题描述】:
我正在尝试在查询之间实现与 NOT 操作和 NAND 操作。
场景一:
SELECT
country_name,country_code
from country
where not (country_name='Land islands' and country_code='AX');
效果很好;显示除我提到的两个国家/地区以外的所有其他国家/地区。
场景 2:
当我尝试在 where 条件中进行一些选择时,它会显示错误。
SELECT * from
country
where not
(SELECT * from country
where country_name='Land islands'
and
SELECT * from country
where country_code='AX');
显示错误..
Kindly refer the Link:我之前的问题以及NOT和NAND操作的工作原理。
【问题讨论】:
标签: mysql database operators logic