还是犯了一个优先级的错误_sql,记录下,提醒自己

下面语句加括号与不加括号返回结果不同,,,

要思考一下为什么,下次争取少犯这个错误就好了..

select *
from switch_ty
where
device_type_id = 20029
and
( point_type_id = 14
or point_type_id = 15)

原文地址:https://www.cnblogs.com/vimmer/p/2516406.html