MYSQL 查询 WHERE IN 条件的问题
发布网友
发布时间:2022-04-15 06:36
我来回答
共1个回答
热心网友
时间:2022-04-15 08:06
SELECT t1.a,
(SELECT group_concat(name) FROM t2 WHERE id IN ( 1,2,3 ) ) AS t2n1,
(SELECT group_concat(name) FROM t2 WHERE FIND_IN_SET(id ,t1.a) ) AS t2n2
FROM t1 WHERE t1.id=1