数据库的group by 分组
2024-10-10 22:18:54
有一个表
查询结果为
用下面的代码写
select COUNT( case NumName when 'a' then NumName end ) as 'aaa',
COUNT( case NumName when 'b' then NumName end ) as 'bb',
COUNT( case NumName when 'c' then NumName end) as 'cc'
from dbo.DataTb
最新文章
- css中clip-path属性的运用
- Just a Hook(HDU1698 线段树的简单应用)
- Asp.Net实现FORM认证的一些使用技巧(转)
- js之arguments对象的使用
- linux kill命令详解
- IOS,Object C学习过程中遇到的attributes
- WINDOWS+L组合键锁定XP
- [RxJS] Transformation operator: scan
- 使用NAT方式连网的linux服务器虚拟机搭建
- VS2012 运行项目在IE中可以运行,但是在google和firefox却不能打开。
- Hdu 1404 Digital Deletions
- Strategic Game HDU
- 一口一口吃掉Hexo(一)
- Socket编程实践(11) --epoll原理与封装
- Magicodes.WeiChat——发送模板消息
- Linux:Day13(上) CentOS系统启动流程
- Netty实战九之单元测试
- MySql 数据库安装、环境变量配置 以及 本地连接
- 解决xcode10打包报错:That command depends on command in Target ‘xxx’:scrpit phase";[CP] Copy Pods Resources";
- C# BindingSource
热门文章
- ASP.NET 2.0 页(Page)生命周期概述
- html中的rowspan和colspan
- jTDS驱动兼容性问题
- IP Editor IP控件(对比一下封装IP控件)
- thinkPHP 模板的使用技巧(十三)
- [Windows Phone]修改应用程序主题
- Python+Django+SAE系列教程14-----使表单更安全
- TCP/IP详细解释--TCP/IP可靠的原则 推拉窗 拥塞窗口
- AeroGear.js 1.2.0 发布,手机Web应用脚手架 - 开源中国社区
- 20.23. xmlrpclib — XML-RPC client access — Python v2.7.5 documentation