这个问题在这里已经有答案了:
sql仅选择列上具有最大值的行[重复](27个答案)
两年前关门了。
嗨,我在mysql里有这个。
record rate update
1 1 1
2 1 2
3 1 3
4 1 4
5 2 1
6 2 2
7 3 1
8 3 2
9 3 3
我想选择每个速率最后一次更新的行。
例如:
the last row of rate 1 is (4 1 4),
the last row of rate 2 is (6 2 2)
and the last row of rate 3 is (9 3 3).
1条答案
按热度按时间0yg35tkg1#