【发布时间】:2015-04-13 04:09:51
【问题描述】:
我正在尝试在 pgSQL 中执行以下查询。
select count(id) from master
where act1=true or act2=true
and regn_no>2000;
但查询返回满足“act1=true 或 act2=true”条件的所有行。它不检查 act1=true 或 act2=true。为什么?
SQLFIDDLE: http://sqlfiddle.com/#!9/23b1f/1
【问题讨论】:
标签: sql postgresql