mysql find_in_set

select * from IpResourceInfo a
where find_in_set(a.id,(SELECT group_concat(CAST(resourcesid AS char)) ss
FROM ipmanage_smh.RoleResources
where roleid='7b40bdde-c4f1-4f6a-8773-a07e3e27e2e0' and resourcestype=21
group by roleid))

 

posted @ 2015-12-18 10:56  Seaurl  阅读(159)  评论(0编辑  收藏  举报