假如有下面查询语句,现在是返回多行。如何写resultMap 呢,谢谢
select distinct G.gameId,G.name,G.createtime,G.maincategoryid,G.subcategoryid,G.fee,P.filterfield1
from WCgame G, GameInfo P
where G.gameId = P.gameId
order by G.createtime desc
limit 1,6;
本文探讨了针对一条特定SQL查询语句如何定义resultMap的问题。该查询从两个表中选择特定字段,并按G.createtime降序排列,限制返回7条记录。讨论的重点是如何适配查询结果到对象模型。
假如有下面查询语句,现在是返回多行。如何写resultMap 呢,谢谢
select distinct G.gameId,G.name,G.createtime,G.maincategoryid,G.subcategoryid,G.fee,P.filterfield1
from WCgame G, GameInfo P
where G.gameId = P.gameId
order by G.createtime desc
limit 1,6;
4578
1229

被折叠的 条评论
为什么被折叠?