不知,
但可能
select count(*) from xs where 性别='男' and 年龄>='61'
select count(*) from xs where 年龄>='61' and 性别='男'
会比楼主的效率高些
但可能
select count(*) from xs where 性别='男' and 年龄>='61'
select count(*) from xs where 年龄>='61' and 性别='男'
会比楼主的效率高些
如果SQL Server是从右到左判断的那么,我认为,select count(*) from xs where 性别='男' and 年龄>='61' 可能是四个里面最快的。如果是聚簇索引的,可能会更明显。