MySQL Forums
Forum List  »  Newbie

Help me! DateDiff() function
Posted by: Dewald Jacobs
Date: June 23, 2005 02:32AM

Hi, I am trying to use the MSSQL function DateDiff('m', date1, date2) in MySQL but mysql do not support the type 'm' or 'd' or 'yyyy'. I do not want to receive the datediff value as a SELECT field e.g.
"SELECT datediff('m',dateofbirth,'2005/06/23') from Dependant WHERE TranID = 3068"

Options: ReplyQuote


Subject
Written By
Posted
Help me! DateDiff() function
June 23, 2005 02:32AM


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.