mybatis里面我要动态查询表的前n行数据:SELECT * FROM aa FETCH FIRST #{NUM} ROWS ONLY的#{NUM} 怎么写
<selectid="getAllClueVerifyCgtPage"parameterType="map"resultType="map">SELECT*FROMaa<...
<select id="getAllClueVerifyCgtPage" parameterType="map" resultType="map" >
SELECT *
FROM aa
<if test="NUM != null">
FETCH FIRST #{NUM} ROWS ONLY
</if>
</select> 展开
SELECT *
FROM aa
<if test="NUM != null">
FETCH FIRST #{NUM} ROWS ONLY
</if>
</select> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询