Mybatis查询实例,sql中的in在Mybatis中怎么写

2025-05-08 23:14:39
推荐回答(2个)
回答1:

  
 Select *
 from tb1 where ID in  
   
  #{item}
   
  
select * 
from tb1 where ID in  
      
     #{item}  
      

根据参数类型进行选择

回答2:

select * from table where id in

#{table}


自己理解一下,不懂再问