摘要: oracle查询:取出每组中的第一条记录按type字段分组,code排序,取出每组中的第一条记录 方法一: select type,min(code) from group_info group by type; 注意:select 后面的列要在group by 子句中,或是用聚合函数包含,否则会有 阅读全文
posted @ 2016-08-09 11:08 目标奔雷手 阅读(423) 评论(0) 推荐(0) 编辑