I would like to get every data from a table where the year is specified. But the problem is i put my date in DATETIME type.
I'm trying something like:
SELECT
*
FROM
table
WHERE
entrytime = 2017 //entrytime is datetime type.
But, it's wrong.
Is there any way to get the data or maybe a better approach ?
Thank you.