mybitis多条件删除语句在配置文件中的写法,多条件。求助啊,急急

delete from user where user_id=? and name=?

http://ask.csdn.net/questions/201580

delete FROM 表 WHERE 1 = 1
    <if test="user.id != 0">
        and id like concat('%',concat(#{user.id},'%') ) 
    </if>
    <if test="user.appid != null">
        and appid like concat('%',concat(#{user.appid},'%') ) 
    </if>
    <if test="user.channel != null">
        and channel = #{user.channel}
    </if>
    不知道你说的是不是这个,,,,

这个好像不是很难的把?关联好像比较难