02 2016 档案

摘要:获取分组后取某字段最大一条记录方法一:(效率最高)select * from test as a where typeindex = (select max(b.typeindex) from test as b where a.type = b.type );方法二:(效率次之)select a. 阅读全文
posted @ 2016-02-22 15:19 小小一菜鸟 阅读(11146) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示
🚀
回顶
收起