如何使用两个比较 mysql 函数?
像这样:
首先
GROUP BY
data_raport HAVING hours <= '8:00'
第二
GROUP BY
data_raport HAVING hours > '8:00' but not higher than < 14
第三
GROUP BY
data_raport HAVING hours > '14:00' but not higher than < 24
最佳答案
您是否在寻找类似 AND
的内容?关键词:
GROUP BY data_raport HAVING hours > '8:00' AND hours < '14:00'
或者你想把第二组和第三组组合在一起,不太确定!?
关于php - Mysql的两个比较函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16886040/