V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  bigfella  ›  全部回复第 1 页 / 共 1 页
回复总数  3
2015-06-13 22:30:29 +08:00
回复了 xuyl 创建的主题 MySQL 简单的 sql 查询问题,求教
@bin456789 摁~ 没想到, 改了下, 加了性别的条件,应该差不错吧
select * from (select t.sex, max(t.score) as score from score t group by sex) aa, score bb where bb.sex = aa.sex and bb.score = aa.score
2015-06-13 17:57:03 +08:00
回复了 xuyl 创建的主题 MySQL 简单的 sql 查询问题,求教
子查询可行~ 笨方法
select name, sex, score from Score where score in (select max(score) from Score group by sex )
2015-06-13 17:06:00 +08:00
回复了 en3073 创建的主题 Swift swift 语言 关于延时的问题求助
sleep不是毫秒吗?
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   936 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 21:57 · PVG 05:57 · LAX 14:57 · JFK 17:57
Developed with CodeLauncher
♥ Do have faith in what you're doing.