mysql根據生日判斷年齡

select id,name,sex,birthday,address from test_table where birthday<date_sub(curdate(),interval 30 years); 查詢大於30歲的人的數據。 -------------------------------------------------------------- DATE_SUB() 函數從日期減
相關文章
相關標籤/搜索