摘要: SQL 分组后获取其中一个字段最大值的整条记录 方法一:(效率最高)select * from test as a where typeindex = (select max(b.typeindex) from test as b where a.type = b.type );方法二:(效率次之) 阅读全文
posted @ 2020-07-31 11:25 我是真的大米 阅读(2753) 评论(0) 推荐(0) 编辑