根据出生日期计算年龄

select s.sname,timestampdiff(year,s.Sbirthday,curdate()) from student s

posted @ 2019-09-03 06:08  养一只Tom猫  阅读(190)  评论(0)    收藏  举报