select *
  from 表 p
 where p.gender <> ''
   and floor(months_between(sysdate, p.Birthday) / 12) <= 49
   and floor(months_between(sysdate, p.Birthday) / 12) >= 15
select * 
  from table p   
where p.gender=''
  and
    floor(months_between(sysdate, p.Birthday)/12)<49
  and
    floor(months_between(sysdate, p.Birthday)/12)>15

 
查询出所有年龄在15~49岁的非男性的信息

相关文章:

  • 2021-12-13
  • 2022-01-20
  • 2021-12-30
猜你喜欢
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2021-12-03
  • 2021-12-13
相关资源
相似解决方案