mybatis中,REGEXP的使用

<if test="ids !='' and ids != null"> and a.tree_names REGEXP #{ids} </if> 参数ids:"ni|hao|wo|shi|ni|ge",等价于 a.tree_names like '%参数中的任意一个%'code
相关文章
相关标签/搜索