记录学习过程,分享经验和心得
The MAX function returns the highest value in a column. NULL values are not included in the calculation. 使用MAX函数可以将一列中的最大值返回出来。NULL值不包括在内。
SELECT MAX(column) FROM table
举例
SELECT MAX(Age) FROM Persons
返回:
45
Note: The MIN and MAX functions can also be used on text columns, to find the highest or lowest value in alphabetical order. 注意: MIN和MAX函数都可以在文字列中使用,可以找到以字母排序中的最大值或是最小值。
posted on 2008-01-25 10:04 沉没的青蛙 阅读(399) 评论(0) 编辑 收藏 所属分类: 数据库
Powered by: 博客园 Copyright © 沉没的青蛙