|
|||||||||||
|
Re: Birthday format
From: Chris Boget <chris.boget(at)wild.net>
Date: Mon Jun 25 2007 - 15:15:34 EDT
Wouldn't this work SELECT FLOOR((TO_DAYS(CURDATE()) - TO_DAYS('1952-10-06')) / 365 ) AS age ? What version of mysql are you using?
thnx,
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/mysql?unsub=lists@pantek.comReceived on Mon Jun 25 15:16:45 2007 This archive was generated by hypermail 2.1.8 : Mon Jun 25 2007 - 15:20:05 EDT |
||||||||||
|
|||||||||||