mysql数据库
表名 :user_score ;
字段 : id int , score int ,coin int ,update_time varchar ;
表数据:
INSERT INTO `user_score` VALUES (0000000017, 100, 89, '1437738261191');
INSERT INTO `user_score` VALUES (0000000018, 20, 30, '1437961725882');
INSERT INTO `user_score` VALUES (0000000019, 5723, 53, '1452652621530');
INSERT INTO `user_score` VALUES (0000000021, 7111, 35, '1453976176633');
INSERT INTO `user_score` VALUES (0000000022, 65, 1, '1447295660532');
INSERT INTO `user_score` VALUES (0000000023, 199, 1, '1441613699660');
INSERT INTO `user_score` VALUES (0000000024, 24, 0, '1439179081673');
INSERT INTO `user_score` VALUES (0000000025, 66, 0, '1442807009072');
INSERT INTO `user_score` VALUES (0000000026, 133, 3, '1446120179564');
INSERT INTO `user_score` VALUES (0000000027, 100, 0, '1441079048409');
INSERT INTO `user_score` VALUES (0000000028, 65, 1, '1446177183621');
INSERT INTO `user_score` VALUES (0000000029, 190, 1212, '1454055221112');
INSERT INTO `user_score` VALUES (0000000030, 172, 0, '1446103021823');
INSERT INTO `user_score` VALUES (0000000031, 29, 0, '1442839235313');
INSERT INTO `user_score` VALUES (0000000032, 39, 0, '1443162888171');
INSERT INTO `user_score` VALUES (0000000033, 22, 0, '1444356835955');
INSERT INTO `user_score` VALUES (0000000034, 100, 0, '1445336557725');
INSERT INTO `user_score` VALUES (0000000035, 45, 0, '1445568585133');
INSERT INTO `user_score` VALUES (0000000036, 100, 14, '1445935455916');
INSERT INTO `user_score` VALUES (0000000037, 43, 15, '1446106921553');
INSERT INTO `user_score` VALUES (0000000038, 28, 0, '1446113066656');
INSERT INTO `user_score` VALUES (0000000039, 2, 0, '1446115722572');
INSERT INTO `user_score` VALUES (0000000040, 100, 0, '1446118034728');
INSERT INTO `user_score` VALUES (0000000041, 24, 0, '1446177104504');
INSERT INTO `user_score` VALUES (0000000042, 104, 0, '1446177414486');
INSERT INTO `user_score` VALUES (0000000043, 138, 0, '1447234557689');
INSERT INTO `user_score` VALUES (0000000044, 100, 0, '1447298300206');
INSERT INTO `user_score` VALUES (0000000045, 120, 123, '1454379447142');
INSERT INTO `user_score` VALUES (0000000046, 100, 12, '1450924571406');
INSERT INTO `user_score` VALUES (0000000047, 22, 20, '1451457257103');
INSERT INTO `user_score` VALUES (0000000048, 131, 19926, '1454055221252');
INSERT INTO `user_score` VALUES (0000000049, 168, 10000120, '1454377956737');
INSERT INTO `user_score` VALUES (0000000050, 100, 0, '1453111040314');
INSERT INTO `user_score` VALUES (0000000051, 0, 10, '1453196768042');
INSERT INTO `user_score` VALUES (0000000052, 0, 10, '1453197037417');
INSERT INTO `user_score` VALUES (0000000054, 30, 78, '1453292926961');
INSERT INTO `user_score` VALUES (0000000055, 63, 83, '1453457781199');
INSERT INTO `user_score` VALUES (0000000056, 0, 4, '1453295252117');
INSERT INTO `user_score` VALUES (0000000057, 75, 68, '1453457781016');
INSERT INTO `user_score` VALUES (0000000058, 0, 1, '1453293223473');
INSERT INTO `user_score` VALUES (0000000059, 0, 1, '1453295358323');
INSERT INTO `user_score` VALUES (0000000060, 100, 0, '1454297859318');
试一下, select * from(select * from (select * from user_score order by score DESC )order by coin DESC ) order by update_time DESC
曾经做过类似的效果,不过我是在前端做,mysql直接把数据取出来不排序,然后放到前端用Angular来排序。Angular支持多重排序的。有兴趣可以看看 http://peinlai.cn/post/angularjs-bei-wang-lu
- 等 最代码怎么获取牛币啊?
- 完 谁来告诉我最代码上线的时间,答对者给5牛币,先来先得
- 等 牛友们,大家好,你们做程序员多久了?现在还好吗?
- 完 在微信打开的页面里进行app下载
- 等 最代码2014年欢乐聚声会
- 完 mysql如何查询表数据并且对3个字段降序的SQL?
- 完 最代码牛币机制改革
- 完 成功的在bae上使用了自定义运行环境 jetty+nginx的组合,大家对jetty+nginx优化有哪些心得?
- 完 进来分享一下各位牛牛是如何加入最代码大家庭的?
- 等 为什么java BufferedImage类处理大图直接抛出内存溢出的异常?
- 等 最代码是否开发手机app客户端?
- 完 java程序员学习哪些java的技术?java有哪些框架?都能做哪方面的开发?
- 等 php格式网页文件怎么运行?
- 等 Java volatile值获取的问题
- 等 前端vue,拦截了登录后台后,返回的token,requests拦截token,但是发送请求的时候,就出现跨越异常
- 等 大专本科计算机科班怎么找到Java工作?
- 等 eclipse怎么把三个java swing游戏项目合成一个项目?
- 完 伙伴们,大家都有什么好的解压方式么,分享一下~
- 完 三四线城市,6、7k,运维工作,索然无味,想去辞职上培训,各位牛牛有什么建议嘛
- 等 jsp页面输入中文变成问号
- 等 JPA在线上运行一段时间后报错Caused by: java.lang.IncompatibleClassChangeError: null
- 等 PHP 这个规则用preg_match_all怎么写
- 等 大佬们,有没有知道Alfresco如何配置LDAP登录呢?
- 等 php的install目录是框架带的吗?
- 等 Mac系统安装mysql成功,但是终端登录mysql为什么报Access denied for user root@localhost?
- 完 Mysql中能否使用select 1 from table查询?
- 等 mysql 分组查每组里创建时间最大的那条数据
- 完 MySql数据库中的主键和Oracle数据库中的如何通过sql确认那个字段是主键?
- 等 mysql如何实现查询一段时间的签到和未签到的用户信息按天展示?
- 等 mysql触发器为什么没执行?
- 等 mysql数据库查询问题
- 完 mysql主从配置:slave_IO_Running: No 怎么解决?
- 完 mysql自定义函数哪里出问题了
- 完 为什么本地WEB项目无法访问服务器Mysql数据库?
- 等 MySQL怎么查询每天打卡的最早时间和最晚时间?
- 完 linux如何查看mysql进程下某个线程执行的语句是什么?