<!--定义代码片段-->
<sql id="selectAll">
select * from student
</sql>
<select id="queryById" resultType="com.example.springboormybatis.mybatis.entity.Student">
<!--使用代码片段-->
<include refid="selectAll"></include>
where id = #{
myId}
</select>
sql标签 代码片段
猜你喜欢
转载自blog.csdn.net/weixin_55806809/article/details/121308230
今日推荐
周排行