1
A
回答
0
select max(case when id = 1 then col1 end) as `10`,
max(case when id = 2 then col1 end) as `20`,
max(case when id = 3 then col1 end) as `30`
from ((select id, `one`as col1, 1 as col2 from t1) union all
(select id, two, 2 as col2 from t1) union all
(select id, three, 3 as col2 from t1) union all
(select id, four, 4 as col2 from t1) union all
(select id, five, 5 as col2 from t1)
) temp
group by col2;
相关问题
- 1. 怎么行转换成列在MySQL
- 2. 我怎么能(可以)在本地安装mysql工作台?
- 3. 我怎么能成多列
- 4. 我怎么能保存的图像转换成团块在C#
- 5. 不能在MySQL-工作台
- 6. 我怎么能转换长日期,年?
- 7. 我怎么能在一列
- 8. python |我怎么能转换成二维数组对数组的
- 9. 我怎么能转换constat值成非恒定的变量?
- 10. 我怎么能从MasterPage有Response.Redirect()工作?
- 11. 我怎么能转换列表<object>独特的ID
- 12. 我怎么能生成Java
- 13. 我应该怎么做才能使MySQL事务在我的代码中工作?
- 14. MySQL的 - 你怎么能在两列
- 15. 我怎么能在一个MySQL查询
- 16. 怎么我的MySQL查询转换在Laravel
- 17. MySQL工作台:显示换行/换行
- 18. &符号转换为和字符串在MySQL工作台
- 19. 我怎么能投或转换两台Unix时间数据类型的结果在MySQL的
- 20. 我怎么能与列出
- 21. 我怎么能转换系统毫秒到在Objective-C
- 22. 我怎么能转换GPathResult在不漂亮的格式
- 23. 我怎么能结合多个PDF转换单个PDF在Android?
- 24. 怎么把LPCTSTR转换成LPSTR?
- 25. 你怎么转换成datetime R中
- 26. 怎么把Decimal转换成T?
- 27. 怎么把Json转换成Protobuf?
- 28. 我怎么能扭转这个功能?
- 29. MySQL工作台
- 30. MySQL工作台
请编辑您的问题,贴在这里你的表中的数据别的图片 –