select areaname from dbo.T_AreaCode where Sheng_code = Left('140100',2) and Shi_code=right(left('140100',4),2) and areacode<>'140100'
这段sql语句查出的信息如下:
areaname
市辖区 小店区 迎泽区 杏花岭区 尖草坪区 万柏林区 晋源区 清徐县 阳曲县 娄烦县 古交市
我想把这一列转换成一行:市辖区 小店区 迎泽区......
请问如何做?
if you are only use the above column you can simply do it in excel by paste options: paste options->transpose(T).
1) 使用 Pivot
2) 把显示器侧过来看. :)