[已解决] 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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM