Mybatis @Select註解,使用in傳入ids數組做爲參數

在使用ids集合做爲參數時,首先想應該是以下作法:java @Select("select id, name, user_id from label where id in <foreach collection=\"ids\" index = \"index\" item = \"id\" open= \"(\" separator=\",\" close=\")\"> #{id} </f
相關文章
相關標籤/搜索