mysql根据生日判断年龄

select id,name,sex,birthday,address from test_table where birthday<date_sub(curdate(),interval 30 years); 查询大于30岁的人的数据。 -------------------------------------------------------------- DATE_SUB() 函数从日期减
相关文章
相关标签/搜索