当前位置: 首页 > 网络学院 > 服务端脚本教程 > SQL > SQL MIN 函数

SQL
SQL 介绍
SQL Select
SQL Where 子句
SQL Insert
SQL Update
SQL Delete
SQL 技能测试
SQL Order By
SQL 与 & OR
SQL In
SQL Between
SQL Aliases
SQL Join
SQL Union
SQL Create
SQL Drop
SQL Alter
SQL 函数
SQL Group By
SQL Select Into

SQL MIN 函数


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 523 ::
收藏到网摘: n/a

The MIN function returns the lowest value in a column. NULL values are not included in the calculation.
使用MIN函数可以返回列中最小的值。NULL值不包括在内。

语法

SELECT MIN(column) FROM table

举例

SELECT MIN(Age) FROM Persons

结果:

19

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函数都可以在文字列中使用,可以找到以字母排序中的最大值或是最小值。

评论 (0) All

登陆 | 还没注册?