If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
MYSQL calculate age from dob and save it to the table
has the title say, i wonder if anyone of you out there, can help me with a query,, to calculate the age from dob and added to my table, that has already a column called 'AGE'
don't store something such as age in a table, its derived data, and should be derived as and when required.
Age is a particularly good example of why you don't store derived data, as effectively you would have to run this query every night to keep the value of age up to date