您的当前位置:首页IBATIS中的include功能

IBATIS中的include功能

2024-06-08 来源:乌哈旅游


<sql id="selectItem_fragment">
FROM items
WHERE parentid = 6
</sql>
<select id="selectItemCount" resultClass="int">
SELECT COUNT(*) AS total
<include refid="selectItem_fragment"/>
</select>
<select id="selectItems" resultClass="Item">
SELECT id, name
<include refid="selectItem_fragment"/>
</select>

因篇幅问题不能全部显示,请点此查看更多更全内容