in是一个双目运算符,其右侧一定是一个集合(或空集)。in一般用于Select嵌套。
in的用法在mybatis里和标准原生sql语法一样
select * from table t where t.id in ('1','2');