Is there a way to calculate age on the fly during a select statement based off of a date of birth field?
| SitePoint Sponsor |
Is there a way to calculate age on the fly during a select statement based off of a date of birth field?
this is what I have so far:
select name, year(date()-year(dob)) as age
from users;


here ya go ===> http://www.sitepoint.com/forums/show...e-based-on-dob
Bookmarks