SQL使用like嵌查询 A表的id: B表关联A表id时前加了个1: 那么就需要支持模糊查询了 select b.* from b where b.uid like concat('%', (select a.resourceid from a where a.字段 =字段值));