在表中获取记录的问题 [英] Problem to fetch record in table
本文介绍了在表中获取记录的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我有一张桌子,在这张桌子上有这样的记录
id name
1 AAA
2 BBB
3 ccc
我想要这个
id name id name name name
1 AAA 2 BBB 3 CCC
怎么可能
谢谢推进
hi
I have one table and in this table record like this
id name
1 AAA
2 BBB
3 ccc
and i want to like this
id name id name id name
1 AAA 2 BBB 3 CCC
how to it possible
Thanks to advance
推荐答案
检查这些
使用PIVOT和UNPIVOT [ ^ ]
在SQL Server中透视数据 - (替代方式) [ ^ ]
Check these
Using PIVOT and UNPIVOT[^]
Pivoting data in SQL Server - (Alternate ways)[^]
这篇关于在表中获取记录的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文