<update >
     update blog
     <set>
         <if test="title != null">
             title = #{title},
         </if>
         <if test="author != null">
             author = #{author},
         </if>
         <if test="views != null">
             views = #{views},
         </if>
     </set>
     where id = #{id}
 </update>

 

相关文章:

  • 2022-12-23
  • 2021-08-26
  • 2021-04-18
  • 2021-08-08
  • 2021-09-30
  • 2023-03-15
  • 2021-06-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案