concat:數據庫中拼接字符串方法
distinct :消除重復行
group by:分組排序
方法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}), '%')