统计xsda表中男女生的人数。
select 性别,count(性别) as 人数
from xsda where 性别='男'
union
select 性别,count(性别) as 人数
from xsda where 性别='女';
/*UNION 是 SQL 中的一个操作符,
用于将两个或多个 SELECT 语句的结果集合并成一个结果集。*/
/*llll*/
统计xsda表中男女生的人数。
select 性别,count(性别) as 人数
from xsda where 性别='男'
union
select 性别,count(性别) as 人数
from xsda where 性别='女';
/*UNION 是 SQL 中的一个操作符,
用于将两个或多个 SELECT 语句的结果集合并成一个结果集。*/
/*llll*/