查询学生表中所有女同学的姓名和年龄用sql语句怎么写

查询学生表中所有女同学的姓名和年龄用sql语句怎么写
2025-02-24 13:40:14
推荐回答(1个)
回答1:

select name,age from table where sex=1

union all

select name,age from table where sex=0