查基本查询select查询指定name,age字段并返回selectname,agefrom表名查询所有字段并返回select*from表名查询指定name,age字段并起别名(姓名,性别)返回selectnameas‘姓名’,ageas‘性别’from表名去除某字段重复记录selectdistinct字段名from表名基本查询where语法select字段名from表名where筛选条件查询在某个范围之间的(包含最小和最大)select*from表名where字段名between23and35查询年龄是23,24,25的数据select*from表名whereage=23orage=24or