MySQL Forums
Forum List  »  Newbie

Re: Filter by Year(date)
Posted by: Pedro Camara
Date: November 23, 2022 12:57PM

So sorry guys. Still sleeping here. I meant:

YEAR (data) <= YEAR (current_date()-2)

But it's still not working...
My date field is called 'data'

Any thoughts?

Options: ReplyQuote

Written By
November 23, 2022 12:50PM
Re: Filter by Year(date)
November 23, 2022 12:57PM
November 23, 2022 09:54PM
November 24, 2022 03:16AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.