输入banner图图片脚本导航/分类

mybatis+oracle实现简单的模糊查询

第一种 concat

select * from cat_table where cat_name like concat(#{catName},‘%‘)      --单个百分号
select * from cat_table where cat_name like concat(concat(‘%‘,#{catName}),‘%‘)    --前后百分号

第二种 ||

select * from cat_table where cat_name like ‘%‘ || #{catName} || ‘%‘ 

 第三种 instr

select * from cat_table where instr(#{catName},‘helloworld‘)>0

 

mybatis+oracle实现简单的模糊查询

标签:class   tis   ||   table   模糊   cat   oracle   ike   mybatis