iBATIS:xml中定义公共引用列
<sql id="allColumn">
`id`,`name`,`age`,`sex`,`xb`
</sql>
<select id="queryPeopleInfoById" parameterClass="map" resultClass="peopleInfo">
select <include refid="allColumn"/> from `people_info` where id = #id#
</select>
<sql id="allColumn">
`id`,`name`,`age`,`sex`,`xb`
</sql>
<select id="queryPeopleInfoById" parameterClass="map" resultClass="peopleInfo">
select <include refid="allColumn"/> from `people_info` where id = #id#
</select>