Mybatis的in语句查询
在SQL语法中如果我们想使用in的话直接可以像如下一样使用:select * from HealthCoupon where useType in ( '4' , '3' )但是如果在MyBatis中的使用in的话,像如下去做的话,肯定会报错:Map<String, Object> selectByUserId(@Param("useType") String useType) <select id="selectByUserId" resultMap="BaseResul
转载
2021-08-18 15:15:29 ·
535 阅读 ·
0 评论