转载http://blog.csdn.net/baidu_31657889/article/details/52101130
有对修真院感兴趣的请移步官网 http://www.jnshu.com/login/1/14708688
<sql> 和 <include>
<sql>用来封装SQL语句, <include>来调用
代码片段:<sql id="select">
SELECT * FROM `body_index`
</sql>
<select id="find" resultType="*" resultMap="*">
<include refid="select"/>
</select>