たとえばこんな感じで
SQL
1create table tbl(id int not null primary key,item int,value int,price int,num int);
2insert into tbl values(1,67,5,3,1),(2,0,0,0,0),(3,5,5,5,0);
SQL
1select id,group_concat(col) as columns
2from(
3select id,'item' as col from tbl where item=(@a:=5)
4union all select id,'value' from tbl where value=@a
5union all select id,'price' from tbl where price=@a
6union all select id,'num' from tbl where num=@a
7) as sub
8group by id;
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。