十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
#日期相差:datadiff,两个参数为时间类型 SELECT DATEDIFF('2019-2-28','2019-2-2'); SELECT DATEDIFF(MAX(hiredate),MIN(hiredate)) AS difference FROM employees; SELECT DATEDIFF(NOW(),'2012-12-2') ;