当前位置:网站首页>MySQL面试真题(二十四)——行列互换
MySQL面试真题(二十四)——行列互换
2022-06-23 03:58:00 【Socialphobia_FOGO】
行列互换
表名:cook
要求查询结果如下:
SELECT 年,
MAX(CASE WHEN 月=1 THEN 值 END) AS m1,
MAX(CASE WHEN 月=2 THEN 值 END) AS m2,
MAX(CASE WHEN 月=3 THEN 值 END) AS m3,
MAX(CASE WHEN 月=4 THEN 值 END) AS m4
FROM cook
GROUP BY 年
边栏推荐
- Introduction to JDBC (III) implementation of transaction rollback function
- The weak are as irritable as tigers, the strong are as calm as water, and the really powerful have already given up their emotions
- [opencv450] inter frame difference method
- Yingjixin ip6806 wireless charging scheme 5W Qi certified peripheral simplified 14 devices
- Meteorological mapping software panoply tutorial (updated from time to time)
- 啊哈C语言 第8章 游戏时间到了(第29讲)
- STM32 clock tree misconfiguration causes boot to enter hard interrupt
- 奇门遁甲辅助决策软件
- 今日睡眠质量记录80分
- 移动电源快充QC3.0方案芯片IP5318快充方案
猜你喜欢

Jenkins installs and deploys and automatically builds and publishes jar applications

GO语言-自定义error
![[leetcode] longest increasing subsequence problem and its application](/img/e0/d666dccec1f65eed61fce83ac2190a.png)
[leetcode] longest increasing subsequence problem and its application

Composite API

Database connection exception: create connection error, url: jdbc: mysql://ip/ Database name, errorcode 0, state 08s01 problem handling

STC 32 Bit 8051 Single Chip Computer Development Example Tutorial one development environment

The road of architects starts from "storage selection"

Introduction to MySQL (I) grammar

奇门遁甲辅助决策软件

visdom画多条动态损失曲线
随机推荐
GDB data reading in GDAL (III) of GIS
Go grouping & sorting
云原生架构(04)-CNCF
WebRTC[47] - WebRTC 保存 YUV 数据的常用方式
英文字母pc是什么意思,互联网的pc指的是什么
Complete one-time GC process of JVM principle
Konva series tutorial 1:what is konva?
电脑开机显示器黑屏是什么原因,电脑显示器黑屏怎么办
低成本5W无线充电器方案FS68001B简便充电芯片
Cloud native architecture (04) -cncf
[opencv450] image subtraction, binarization, threshold segmentation
Design and implementation of spark offline development framework
ES6的Array.from方法创建长度为N的undefined数组
Redis缓存穿透解决方案-布隆过滤器
Export PDF with watermark
软件设计开发笔记2:基于QT设计串口调试工具
hash---------history
Facing new challenges and becoming a better self -- an advanced technology er
CF [1700d] D. River locks (DP, bisection, Mathematics)
抽奖 ddd 代码