[已解决] MyBatis 中bind用法

JAVA:

    TC_ENTR_FLOW selectFlowForUpdate(String ENTR_ID);

 

XML:

    <select id="selectFlowForUpdate" resultMap="BaseResultMap"
        parameterType="java.lang.String">
        <bind name="ENTR_ID" value="'%' + _parameter" />
        select
        *
        from
        TC_ENTR_FLOW
        where ENTR_ID like #{ENTR_ID}
        for update
    </select>

 

参考:http://www.mybatis.org/mybatis-3/zh/dynamic-sql.html

文章来源:http://www.cnblogs.com/gifisan/p/5593531.html 

轻量级 Java NIO 工具包:https://github.com/nimbleio/nimbleio

 

posted @ 2016-06-17 11:36  gifisan  阅读(6681)  评论(0编辑  收藏  举报