Mybatis @select像传值问题是怎样的

  介绍

这篇文章给大家介绍Mybatis @select像传值问题是怎样的,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。

<强>巧用CONCAT拼接:

 SELECT ,,,
  b.id,,,,,
  b.title,,,,,
  b.subtitle,,,,,
  b.num,,,,,
  b.descr,,,,,
  b.img,,,,,
  b.info,,,,,
  b.f_price  AS  price ,,,
  得到product  b ,,
  WHERE  b.status=1,以及b.i_shelf=2,以及b.title  LIKE  CONCAT(& # 39; % & # 39; & # 39;面膜& # 39;,& # 39;% & # 39;),,
  ORDER  BY  b.sort  ASC 

Mybatis @select像传值问题是怎样的