查出单表中 每组的前5个 排序方式是优先级
rt~
太久没用sql了,啥都忘了。。
[解决办法]
- SQL code
select * from test awhere a.id in (select top 5 id from test b where a.组号=b.组号)--try,没测试数据,只能写个大概
[解决办法]
发布时间: 2012-09-27 11:11:17 作者: rapoo
查出单表中 每组的前5个 排序方式是优先级
rt~
太久没用sql了,啥都忘了。。
[解决办法]
select * from test awhere a.id in (select top 5 id from test b where a.组号=b.组号)--try,没测试数据,只能写个大概
[解决办法]