当前月份和生日隔的天数
select datediff(DATE_ADD("1989-06-10",INTERVAL ceil(TIMESTAMPDIFF(MONTH,"1989-06-10",NOW())/12) YEAR),NOW())
原文地址:https://www.cnblogs.com/fps2tao/p/9019186.html
时间: 2024-10-17 01:04:10
当前月份和生日隔的天数
select datediff(DATE_ADD("1989-06-10",INTERVAL ceil(TIMESTAMPDIFF(MONTH,"1989-06-10",NOW())/12) YEAR),NOW())
原文地址:https://www.cnblogs.com/fps2tao/p/9019186.html