select sex,age from 表名 --查询表中所有人的性别的年龄select * from 表名 where age=18 and sex='man' --这个是查询表中所有年龄为18岁 的男性