设为首页 加入收藏

TOP

数据库一列多行转一行多列
2015-07-24 10:24:25 来源: 作者: 【 】 浏览:0
Tags:数据库一 一行 多列

如题:

\

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


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇recordset记录集方式使用 下一篇在rhel6上安装11.2.0.3or11.2.0.4..

评论

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

·Python爬虫教程(从 (2025-12-26 16:49:14)
·【全269集】B站最详 (2025-12-26 16:49:11)
·Python爬虫详解:原 (2025-12-26 16:49:09)
·Spring Boot Java: (2025-12-26 16:20:19)
·Spring BootでHello (2025-12-26 16:20:15)