Home  >  Article  >  Database  >  max()-问一个sql问题,hour()获取日期的小时,然后给他赋值最大值,但是为什么出错了

max()-问一个sql问题,hour()获取日期的小时,然后给他赋值最大值,但是为什么出错了

WBOY
WBOYOriginal
2016-06-06 09:35:361179browse

max()mysqlhour()

hour(stat_time)=max(hour(stat_time))提示Invalid use of group function

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn