<sql> 和 <include>


<sql>用来封装SQL语句, <include>来调用


代码片段:<sql id="select">
SELECT * FROM `body_index`
</sql>

<select id="find" resultType="*" resultMap="*">
        <include refid="select"/>
    </select>

xml里面的表现:

MyBatis 中mapper.xml文件中<sql>标签,<include>标签的使用


相关文章:

  • 2022-01-07
  • 2022-02-05
  • 2021-12-27
  • 2022-12-23
猜你喜欢
  • 2022-01-20
  • 2022-02-15
  • 2021-12-18
相关资源
相似解决方案