mysql 对指定字段进行去重并返回最新一条记录
源表数据结构 插入数据 源表数据如下,当我需要查询本周各部门index_1的分数时,只需要获取最新的记录。 目标数据内容:index_code 为 ‘index_1’的score应该获取日期为 ...
源表数据结构 插入数据 源表数据如下,当我需要查询本周各部门index_1的分数时,只需要获取最新的记录。 目标数据内容:index_code 为 ‘index_1’的score应该获取日期为 ...