mysql,一个字段存了多个id并用逗号隔开,如何使用sql取出来使用

2025-03-24 00:09:44
推荐回答(2个)
回答1:

试试下面这句行不
select name from B where id find_in_set(id,select sevice from A where id=1)

回答2:

select * from `B` where `id` IN ( 6 , 9 , 7 )