select
*
from
table_name
where
to_char(时间字段,'YYYY-MM-dd') between to_char(sysdate,'YYYY-MM')||'-01' and to_char(last_day(SYSDATE),'YYYY-MM-dd');
select
*
from
table_name
where
to_char(时间字段,'YYYY-MM-dd') between to_char(sysdate,'YYYY-MM')||'-01' and to_char(last_day(SYSDATE),'YYYY-MM-dd');