MySQL Forums
Forum List  »  Newbie

Date Difference in MySQL query (3.23.50)
Posted by: Guus van Velthuijsen
Date: May 09, 2005 04:12AM

I am trying to calculate the age of my customers. The birthdates are stored: 19621222

I am trying
Select (Current_Date - BirthDate)/365 as Age from Customers

Of course that is not the solution. Is there a function i can use?

TIA,
Guus

Options: ReplyQuote


Subject
Written By
Posted
Date Difference in MySQL query (3.23.50)
May 09, 2005 04:12AM


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.