greatest (a,b,c,d,d)max(a) 这样就能看明白了,greatest 求的是某几列的最大值,横向求最大(一行记录)max(a) 一看就明白了,是给纵向求最大(多行记录)。
mysql中函数greatest 与MAX区别
原文:http://www.cnblogs.com/mr-wuxiansheng/p/7492342.html