select <include ref /> from goods where id = #{id} for update

<!-- 可复用的sql模板 -->
    <sql >
   	id,name,num
   </sql>

这里的表示调用id=sqlBase的复用sql语句
上述例子表示为:

 select id,name,num from goods where id = #{id} for update

相关文章:

  • 2021-11-12
  • 2022-12-23
  • 2021-07-22
  • 2021-10-12
  • 2022-12-23
  • 2021-12-06
猜你喜欢
  • 2022-12-23
  • 2021-12-30
  • 2021-08-23
  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案