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
相關文章
相關標籤/搜索