开发者

Mysql highest from 1 row

Is is poslbe too get the highest value from a row?

IE. I have 3 da开发者_如何转开发ys as columns with a timestamp value, can i get the highest value out?


GREATEST() might be what you want:

http://dev.mysql.com/doc/refman/5.1/en/comparison-operators.html#function_greatest


SELECT MAX(column1,column2,cloumn3) FROM ...
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜