MySQL Forums
Forum List  »  Newbie

SELECT DATEDIFF Help
Posted by: Ted Mullins
Date: February 27, 2024 10:00PM

Hi.
I want to get the difference between two dates in years.
I have this:

SELECT DATEDIFF("2004-04-20","2010-05-7")

The result is shown in days. I need show this in years.
Can some one help me?

Options: ReplyQuote


Subject
Written By
Posted
SELECT DATEDIFF Help
February 27, 2024 10:00PM
February 27, 2024 10:03PM
February 27, 2024 11:51PM


Sorry, only registered users may post in this forum.

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.