补充一句,不要用
select top 1 * from t1 where id = 'a1' order by value desc之类
我的目的是看看怎么使用max函数达到
“指定某个id 而且value最大”的效果