where 张三.爱好 = 李四.爱好
初步想法,使用嵌套查询,先查出张三的爱好,然后与李四的爱好比较
嗯嗯,我试试
select interest from table_a where name in (‘张三‘,’李四‘) group by interest having count(1) > 1
where 张三.爱好 = 李四.爱好
初步想法,使用嵌套查询,先查出张三的爱好,然后与李四的爱好比较
嗯嗯,我试试
select interest from table_a where name in (‘张三‘,’李四‘) group by interest having count(1) > 1