这是表
infoPanelId,
infoPanelNumber,
infoPanelName,
locationNumber,
screenWidth,
screenHeight,
infoPanelAdress,
infoPanelMaker,
GPSX,
GPSY,
laneNumber,
comNumber,
LANAdress,
installDirectionId
主要是根据screenWidth和screenHeight进行分类,
分类之后在每个分类中同时又能看到每条信息
效果类似下边
screenWidth:196,screenHeight:100{N条数据}
screenWidth:100,screenHeight:100{N条数据}
在线等
好像有人误会了。。我再写清楚点
screenWidth:196,screenHeight:100{第一条数据,第二条数据,第N条数据}
mybatis中怎么达到这种效果
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
6条回答 默认 最新
- 董立飞 2017-12-04 06:21关注
select * from (
select screenWidth,screenHeight,count(1) from infoPanelId t group by screenWidth,screenHeight
union all
select * from infoPanelId t
)a order by screenWidth,screenHeight会出
screenWidth:196,screenHeight:100
screenWidth:196,screenHeight:100 的详细数据
screenWidth:100,screenHeight:100
screenWidth:100,screenHeight:100 的详细数据
我不知道你是要这种效果么本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报