1. 源码下载:
参看06-MyBatis_关联映射之多对一的下载2. 功能:
<sql>封装SQL语句, <include>调用
如:
<sql id="columns">
id, name, address
</sql>
<select ....>
select <include refid="columns"/> from user
</select>
3. 使用:
<sql>封装SQL语句, <include>调用
如:
<sql id="columns">
id, name, address
</sql>
<select ....>
select <include refid="columns"/> from user
</select>