当前位置: 首页 > 网络学院 > 服务端脚本教程 > SQL > SQL LAST 函数
The LAST function returns the value of the last record in the specified field.
使用LAST函数可以将指定区域内的最后一条记录返回出来
Tip: Use the ORDER BY clause to order the records!
提示:可以使用ORDER BY 子句来排列记录!
SELECT LAST(column) AS [expression] |
举例
SELECT LAST(Age) AS highest_age |
结果:
45 |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
吃惊 | 欠揍 | 支持 | 很棒 | 一般 | 搞笑 | 扯淡 | 不解 |