sql查最大值及最大值对应的时间

2025-02-24 07:34:26
推荐回答(3个)
回答1:

select tm where a1=(select max(a1) from 表名)

回答2:

select max(a1),tm from tb

回答3:

SELECR * FROM TABLE ORDER BY a1 DESC LIMI 1;