mysql中經過身份證計算年紀

SELECT * FROM ( SELECT borrower_idcard idcard, substring(borrower_idcard,7,8) birth, year(now())- year(substring(borrower_idcard,7,8)) age, borrower_name NAME FROM jr_finance_business_info
相關文章
相關標籤/搜索