Advertisement

MyBatis:update语法实操与选择性更新标签的使用及注解式动态SQL语句SqlProvider的应用(5)

阅读量:

update语法更新对象操作

复制代码
    <!--更新视频信息-->
    <update id="updatevideo" parameterType="net.jhclass.online_class.domain.pojo.Video">
        update video
        set
        title = #{title},
        summary=#{summary},
        cover_img=#{cover_img},
        price = #{price},
        c_id = #{price},
        point = #{point},
        create_time = #{create_time}
        where
        id = #{id}
    </update>
    
    
      
      
      
      
      
      
      
      
      
      
      
      
      
      
    

数据访问层

复制代码
    /** * 更新视频
     * @param video
     * @return

全部评论 (0)

还没有任何评论哟~