语句模板查询
/*
select [all | distinct] --all 结果集中可包含重复行,distinct则相反[top n [percent]]
{* | <字段>}
[into 表名]
from table_name | view_name | from 表1 别名1,表2 表名2 [,...n]
[where <condition>]
[group by <字段名>] [having <expression>]
[order by <字段名>] [asc | dec]
*/
select * from 饲养员 --*代表统配查询所有字段
select * from 姓名,年龄,家庭地址 from 饲养员 --查询选定字段
select DISTINCT 性别 from 饲养员 --结果去重
select all 性别 from 饲养员
select top 2 * from 饲养员 --查询前2个记录
select