Answers for "select where year sql"

SQL
2

current year sql

-- Oracle
SELECT extract(YEAR FROM sysdate) FROM dual;			// number
SELECT to_char(sysdate, 'YYYY') FROM dual;				// varchar
Posted by: Guest on May-04-2021
0

sql date with year

...
WHERE YEAR(date_field) = '2021'
Posted by: Guest on July-16-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language