-- ORDER_TIME datetime NOT NULL(字段类型)SELECTso.`ID`,so.`ORDER_TIME`,NOW(),CONCAT(ROUND(TIMESTAMPDIFF(MINUTE,so.`ORDER_TIME`,NOW())/60,1),'') AS hourLaterFROM se_seal_order soWHERE so.id=#{orderId};
转载于:https://www.cnblogs.com/sung1024/p/11171782.html
相关资源:mysql取得两个时间之间的差值
转载请注明原文地址: https://win8.8miu.com/read-25587.html