开发者

find max value without aggregate operator in mysql

开发者 https://www.devze.com 2023-01-16 00:20 出处:网络
how to find the maximum value in a column with integer values without using开发者_Python百科 aggregate operator in mysqlHow about something like

how to find the maximum value in a column with integer values without using开发者_Python百科 aggregate operator in mysql


How about something like

SELECT <Value>
FROM <YourTable>
ORDER BY <Value> DESC
LIMIT 1


You can do:

SELECT IntColumn FROM MyTable ORDER BY IntColumn DESC LIMIT 1
0

精彩评论

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