扩大
缩小

2020年8月4日

SQL 分组后获取其中一个字段最大值的整条记录 【转载】

摘要: SQL 分组后获取其中一个字段最大值的整条记录 方法一:(效率最高)select * from test as a where typeindex = (select max(b.typeindex) from test as b where a.type = b.type );方法二:(效率次之) 阅读全文

posted @ 2020-08-04 15:50 禅道 阅读(667) 评论(0) 推荐(0) 编辑

导航