java编程问题
表:table
id | content
01 | 苹果
02 | 橙子
03 | 雪梨
04 | 菠萝
参数为List<List> 类型,参数内容是 [[“01”,“02”],["01,"03"]]
想要的结果
content
苹果,橙子
苹果,雪梨
问:
分开用多条sql 很好写,无非就是select group_concat(content) from table where id in ("01","02")和select group_concat(content) from table where id in ("01","03"),如何1条sql实现或者一次mybaits查询啊?