sql Todas作为T恤

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql Todas作为T恤相关的知识,希望对你有一定的参考价值。

SELECT ppl_mode,
	COUNT(IF(ppl_shirt='S',1,NULL)) AS S,
	COUNT(IF(ppl_shirt='M',1,NULL)) AS M,
	COUNT(IF(ppl_shirt='L',1,NULL)) AS L,
	COUNT(IF(ppl_shirt='XL',1,NULL)) AS XL,
	COUNT(IF(ppl_shirt='XXL',1,NULL)) AS XXL,
	COUNT(*) as totais
	FROM tvp_2016
	where ppl_number IS NOT NULL
	GROUP BY ppl_mode WITH ROLLUP

以上是关于sql Todas作为T恤的主要内容,如果未能解决你的问题,请参考以下文章

sh Laravel Artisan - Executa todas作为迁移

sh Laravel Artisan - Executa todas作为迁移

sql SQL脚本para listar todas las tablas de una base de datos

sql Seeliminalimitaciónamostrarsólo16registros ya que ocasionaba que no se mostrara todas

sql Contagem T恤足迹

sh 丢弃todas tabelas,如%LOCK%