先看示例
<sql id="admin_List">
name, pwd,age
</sql>
---------------
<select id="" parameterType="" resultMap="">
select
<if test="distinct"> // distinct 去重复数据
distinct
</if>
<include refid="admin_List" />
from student
这样做 可以更精确的查 自己想要的数据 减轻服务器压力