sql中的or 用Union All 替换 效率高

with T1 As 
(
Select * From Table1
)
Select * From T1 where sex=1
Union All
Select * From T1 where type=2

  

原文地址:https://www.cnblogs.com/0banana0/p/2159684.html