<sql>
用来封装SQL语句
<include>
来调用
<sql id="columns">
id,name,sex,birthday
</sql>
<select id="selectList" resultMap="Map">
SELECT <include refid="columns" />
FROM student
</select>
<sql>
用来封装SQL语句
<include>
来调用
<sql id="columns">
id,name,sex,birthday
</sql>
<select id="selectList" resultMap="Map">
SELECT <include refid="columns" />
FROM student
</select>