结构集合并

select
  id
from
  a
where
  aa > 10
union all
select
  id
from
  a
where
  bb = 10