语法
sql
值 = =ANY (字段);
例子
查询ids
中包含id=5
的数据
sql
select * from student where 5 = ANY (ids)
- mybatis
xml
select * from student where
#{id} = ANY (ids)