怎样查询付合一定条件的记录个数啊? select count(*) 记录个数 from 表A where sex='男' 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select count(*) as 男性数量 from a where sex='男' select count(*) 记录个数 from 表A where sex='男' select count(*) from A where sex='男' select count(*) as 记录数 from a where sex='男' select sum(case when sex='男' then 1 end) as 记录数 from a select sum(case when Sex='男'' then 1 else 0 end) as 男记录数, sum(case when Sex='女' then 1 else 0 end) as 女记录数 from mytable 一个统计,SQL语句或存储过程要怎么实现! 还是求sql递归 ASP 在存储过程中 报 名为 'mycursor ' 的游标已存在 火车票查询问题!求一条Sql语句! 求:插入,更新的SQL语句 一个简单的查询问题,在线等! 关于选取不重复的项 求一个追加查询语句 简单问题,救救我吧! 为什么我建的数据表没有保存下来? 如何把SQL Server7.0里面的数据移植到SQL Server2000
sum(case when Sex='女' then 1 else 0 end) as 女记录数
from mytable