使用mysql获取每个名称的最佳记录 [英] Get best records of each name using mysql

查看:76
本文介绍了使用mysql获取每个名称的最佳记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为某些游戏策略创造某种顶峰"

I'm trying to make some kind of "top" for some game stadistics

表是这样的

mapname     authid  country     name    time    date    weapon  server

我有这个查询,但是不行

I've got this query, but it's not ok

SELECT *, min(time) FROM kz_nub15 WHERE mapname = '".$map."' GROUP BY name ASC ORDER BY time ASC LIMIT 15

我正在尝试为地图名获取15次最佳时间,但仅显示每个名称的最佳时间

I'm trying to get the best 15 times for a mapname, but only showing the best time of each name

推荐答案

这是由于min()造成的,请取出min()并重试.

This is because of min() , take out min() and try again.

这篇关于使用mysql获取每个名称的最佳记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆