Question: Can I create a table in mysql that shows the age of the person by subtracting the year from today minus the year of birth?
create table idade2 (ID auto_increment Primary key, data_nasc date, idade int as ((year(curdate() - year(data_nasc)) stored);
Can it be this way?