The difference between YYYY and RRRR in Oracle SQL

1149630 pts.
Tags:
Oracle
SQL
My partner and I have two different queries in Oracle SQL. Here they are:
select trunc(to_date('27-Jul-1987'),'YYYY') FROM dual;
And
select trunc(to_date('27-Jul-1987'),'RRRR') FROM dual;
But both queries are giving us the same result. What's the difference between YYYY and RRRR? We appreciate any help available.
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: