MyBatis-Plus AbstractWrapper-inSql
2022-03-24 15:46 更新
MyBatis-Plus 条件构造器-AbstractWrapper
inSql(R column, String inValue)
inSql(boolean condition, R column, String inValue)
- 字段 IN ( sql语句 )
- 例:
inSql("age", "1,2,3,4,5,6")--->age in (1,2,3,4,5,6)
- 例:
inSql("id", "select id from table where id < 3")--->id in (select id from table where id < 3)
以上内容是否对您有帮助:
更多建议: