第一中情况:表中含有年份的字段
select * from table t
where t.年份字段 = to_char(sysdate,'yyyy')
第二种情况:表中不含有年份的字段,而是含有完整日期的字段
select * from table t
where substr(t.日期字段,1,4) = to_char(sysdate,'yyyy')
第一中情况:表中含有年份的字段
select * from table t
where t.年份字段 = to_char(sysdate,'yyyy')
第二种情况:表中不含有年份的字段,而是含有完整日期的字段
select * from table t
where substr(t.日期字段,1,4) = to_char(sysdate,'yyyy')