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>
posted @ 2019-01-15 14:06  xuejianbest  阅读(88)  评论(0编辑  收藏  举报