select * from (
select to_number(to_char(sysdate,'yyyy')) v,to_number(to_char(sysdate,'yyyy')) t from dual
union
select to_char(sysdate,'yyyy')-1 v,to_char(sysdate,'yyyy')-1 t from dual
union
select to_char(sysdate,'yyyy')-2 v,to_char(sysdate,'yyyy')-2 t from dual
union
select to_char(sysdate,'yyyy')-3 v,to_char(sysdate,'yyyy')-3 t from dual
union
select to_char(sysdate,'yyyy')-4 v,to_char(sysdate,'yyyy')-4 t from dual
union
select to_char(sysdate,'yyyy')-5 v,to_char(sysdate,'yyyy')-5 t from dual
) order by v desc
为什么这个select to_number(to_char(sysdate,'yyyy')) v,to_number(to_char(sysdate,'yyyy'))要查询两次v,to_number(to_char(sysdate,'yyyy'))呢,不明白