mybatis like '%specific string%'

来源:互联网 发布:淘宝上的菲戈体育 编辑:程序博客网 时间:2024/06/06 14:01

转自:http://mybatis-user.963551.n3.nabble.com/mybatis-like-specific-string-td2001201.html

部分原文:

You have three options

'%'||${specific_string}||'%'

or

#{do_it_in_java}

or

someFunctionOrProc(#{specific_string}) where the function/proc will
handle it.  If you use this a lot in multiple SqlMaps then I might go
down this road.