数据库 行转列 列转行详解
时间:2022-03-10 17:10
- create table TEST_TB_GRADE
- ID NUMBER(10) not null,
- COURSE VARCHAR2(20 CHAR),
- )
- select t.user_name,
- sum(decode(t.course, ‘数学‘, score,null)) as MATH,
- from test_tb_grade t
- order by t.user_name
时间:2022-03-10 17:10
create table TEST_TB_GRADE
select t.user_name,
select t2.SCORE_GP,
select user_name, ‘语文‘ COURSE , CN_SCORE as SCORE from test_tb_grade2
别忘记commit操作,然后再查询TEST_TB_GRADE3,发现表中的数据就是列转成行了。
本文连接:http://sjsky.iteye.com/blog/1152167
数据库 行转列 列转行详解,布布扣,bubuko.com
飞豆微信多开助手 V2.0.0 官方安装版
2024-08-13
亚熙专属骂人工具 V1.0 绿色版
2024-08-13
迈迪通2018 V2.2.23 电脑版
2024-07-31
Whalebird V2.5.3 绿色免费版
2024-07-31
Teampel(团队协作软件) V5.0.92 多国语言安装版
2024-06-26
东方秀 V1.0 免费安装版
2024-06-26
OI语音 V1.1 官方安装版
2024-06-06
TQ云呼叫中心 V9.48.0 官方安装版
2024-06-06
火信 V1.3.8 官方安装版
2024-04-08
百玲语音智能聊天机器人 V1.0 绿色版
2024-04-08
视酷即时通讯 V2.5 官方安装版
2024-04-08
106短信群发平台 V1.0 绿色版
2024-04-01
帮我吧服务管理平台(帮我吧客户端) V5.3.7.0 官方安装版
2024-04-01
南山对讲 V1.0.2 绿色版
2024-03-18
Zoom视频会议 V5.13.7.12602 官方安装版
2024-03-18
可访 V2.2.55 官方安装版
2024-02-22
本站所有资源全部来源于网络,若本站发布的内容侵害到您的隐私或者利益,请联系我们删除!
Copyright © 2004-2025 www.gxlsystem.com. All Rights Reserved.