📜  sql 计算一个值出现的次数 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:51.051000             🧑  作者: Mango

代码示例1
* For Example
- You have a table called t1 & in that table you want to know how many times "ABC" name occured.
So your query will be.

select name, count(*) as total FROM t1 GROUP BY name