您的位置:首页 > 其它

关于商城分类查询表结构与数据查询

2017-07-18 10:57 330 查看


select gameid from (
select group_concat(type,"-",v) as final,gameid from
(select gameid,type,v from (
select gameid,type, group_concat(value) as v from (
select * from table_name order by gameid asc,type asc,value asc
) as u where (type=1 and value in ('5','8')) or (type=2 and value in ('1')) group by gameid,type
) as tmp
) as t group by gameid
) as f where final='1-5,8,2-1'
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: