person表的字段












person表中的数据:
查询:select id,name,sex,age,brithday,address from person;









distinct去除重复:
1.去除重复的name(去除某一个字段重复的记录)
 正确:       select distinct name,id,sex,age,brithday,address from person; --distinct只能放在查询的最前面
 错误:       select id,distinct name,sex,age,brithday,address from person; --出错,缺失表达式