亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

反向行列轉換

如果是換過來呢?如何把右邊的格式轉為左邊的?

正在回答

1 回答

http://img1.sycdn.imooc.com//574d3c2e000159e409560279.jpg

問題是怎么從右邊轉換為左邊,我自己的答案是:

select ?user_name,(select eq_name from `test_game` b where b.user_name = a.user_name and b.equipment = 'arms' ) as arms,(select eq_name from `test_game` c where c.user_name = a.user_name and c.equipment = 'clothing' ) as clothing ,(select eq_name from `test_game` d where d.user_name = a.user_name and d.equipment = 'shoe' ) as shoe from `test_game` a ?group by a.user_name;

感覺子查詢太多了,效率有點低,哪位大神幫忙優化一下?

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

反向行列轉換

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號