【问题标题】:MySQL, how to get the largest value of one column?MySQL,如何获得一列的最大值?
【发布时间】:2010-02-25 06:10:30
【问题描述】:

SELECTFROMWHERE 列最大?

【问题讨论】:

  • 可能的最大值,还是列中当前存储的最大值?
  • 我不太明白。 where 子句是否影响多个列?

标签: sql mysql select


【解决方案1】:

试试:

SELECT MAX(column) FROM table;

MAX 是一个aggregate function;见documentation

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-09-09
    • 1970-01-01
    • 2021-12-12
    • 2014-06-15
    • 1970-01-01
    • 2011-07-05
    • 1970-01-01
    相关资源
    最近更新 更多