Wednesday, April 25, 2007

age in mysql

mysql> SELECT (TO_DAYS(NOW())-TO_DAYS(dob)) AS age FROM people;

No comments:

Post a Comment