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}), '%')

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
  • 2021-09-03
  • 2021-11-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-20
  • 2022-12-23
  • 2021-09-21
  • 2022-12-23
  • 2021-06-04
  • 2021-08-13
相关资源
相似解决方案