title: Extract only the current year in oracle
body: <p>I need to get the current year from the oracle db. For an example I need to return 2017 as the answer for the current year as a number type. I tried using following way.</p>
  
  <pre><code>select to_Number(sysdate, 'YYYY') from student s
  </code></pre>
  
  <p>But it not works. So what is the easiest way?</p>