mysql带有子查询的like查询

SELECT * FROM by_app_categories WHERE c_name LIKE CONCAT('%', (SELECT `name` FROM b_catelist WHERE type="wangluo"), '%')

你可能感兴趣的:(mysql)