例如 [select * from tableName where id In(1,2,3,4)]
<select id="findListById" resultType="Goods">
SELECT * FROM TABLE_NAME WHERE g.id IN
<foreach collection="ids" index="index" item="item" open="(" separator="," close=")">
#{item}
</foreach>
</select>
MYbatis 很据ID 集合 查询
猜你喜欢
转载自keney-oak.iteye.com/blog/2254648
今日推荐
周排行