例子: select count(*) from my table
where
column1 is not null
and
(column1 = 4 OR column1 = 5)
例2: select count(*) from my table
where
column1 is not null
and
column1 = 4 OR column1 = 5
在我與真
我總是在sql查詢中使用括號。但我有例如: DELETE FROM prog
WHERE prog_start >= $1 AND prog_start < $2
OR prog_end > $1 AND prog_end <= $2
是否等於: DELETE FROM prog
WHERE (prog_start >= $1 AND prog_start < $2)