I have 2 queries in SQL:
select trunc(to_date('27-Jul-1987'),'YYYY') FROM dual;
and
select trunc(to_date('27-Jul-1987'),'RRRR') FROM dual;
Both are giving me the same result. What is the difference between 'RRRR' and 'YYYY'?
See Question&Answers more detail:os