select * from (select * from A order by `order` asc,date desc)x group by name
解决方案 »
- 求助:mysql数据恢复
- 请问在mysql中怎样更新,插入指定行数的数据
- 存储过程在mysql工具里面能正确运行,在vc代码里面不行
- 如何update一个字段的值为null
- java开发数据库c/s结构(非web),c端一般用什么开发?
- 求一SQL语句,谢谢大家
- 寻找符合下面条件的IT人才
- 我的win2000装在d盘,c盘装的win xp,我的mysql安装在d;\mysql下,mysql无法运行,怎么呢?!
- 怎样在刚装好的mysql上运行命令,知道我的系统安装成功(redhat7.2)
- sql语句在mysql cluster执行时间过长?
- 如何学精mysql数据库。
- oracle迁移到mysql遇到的函数问题
(select 1 from test B where B.name = A.name and B.id!= A.id and if(B.order < A.order, true, if(B.order = A.order, B.date > A.date , false)))
order by `order` asc, `date` desc
[征集]分组取最大N条记录方法征集,及散分...