0
我有以下查詢:MySQL的組包含
select *, group_concat(tags.tag_name separator ',') as tags from games
left join game_info using(game_id)
left join game_tags using(game_id)
left join tags on(tags.tag_id = game_tags.tag_id)
group by games.game_id;
有我的方式來篩選,其中的基團具有特定值的結果?
我可以添加具有,但是這似乎並不十分最佳:
select *, group_concat(tags.tag_name separator ',') as tags from games
left join game_info using(game_id)
left join game_tags using(game_id)
left join tags on(tags.tag_id = game_tags.tag_id)
group by games.game_id
having tags like '%puzzle%';