mysql與oracle根據生日時間計算生日

mysql寫法mysql SELECT user_id, birthday, CURDATE() nowaday,(YEAR(CURDATE())-YEAR(STR_TO_DATE(birthday,'%Y-%m-%d')))-((RIGHT(CURDATE(),5)<RIGHT(STR_TO_DATE(birthday,'%Y-%m-%d'),5))) age FROM sit_user whe
相關文章
相關標籤/搜索