900字范文,内容丰富有趣,生活中的好帮手!
900字范文 > mysql的模糊查询在xml_数据库模糊查询语句(mybatis中运用(xml文件))

mysql的模糊查询在xml_数据库模糊查询语句(mybatis中运用(xml文件))

时间:2020-04-28 22:33:15

相关推荐

mysql的模糊查询在xml_数据库模糊查询语句(mybatis中运用(xml文件))

其中concat未数据库中拼接字符串方法

方法1;

select distinct function_name,function_module,function_url,date

from agent_function

where

concat(‘‘,function_name,function_module) like CONCAT(‘%‘,#{_parameter}, ‘%‘)

方法2;

select distinct function_name,function_module,function_url,date

from agent_function

where function_name LIKE CONCAT(CONCAT(‘%‘, #{_parameter}), ‘%‘) or

function_module LIKE CONCAT(CONCAT(‘%‘, #{_parameter}), ‘%‘)

原文:/mingqi/p/6485352.html

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。