根据出生日期计算年龄

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

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