Mybatis删除用户

xml

    <!--删除用户  -->
    <delete id="deleteById" parameterType="Integer">
        delete from users where id = #{v}
    </delete>

测试

//删除
        int account = sqlSession.delete("",10);
        sqlSession.commit();

猜你喜欢

转载自www.cnblogs.com/excellencesy/p/9138880.html