数据库一列多行转一行多列

2015-07-24 10:24:25 ? 作者: ? 浏览: 1

如题:

\

select
max(case when name="1' then [temp] else null end) as temp1
, max(case when name='2' then [temp] else null end) as temp2,
max(case when name='3' then [temp] else null end) as temp3
from historyt group by time


-->

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: