mybatis xml like

<select  id=selectByNameLike" parameterType="string" resultMap="BaseResultMap">

  SELECT
      *
  FROM
      a
  LEFT JOIN b ON a.bid = b.id
  WHERE
      a.NAME LIKE concat ("%", #{name},"%")

<select>

posted @ 2020-03-28 23:07  1456710017  阅读(699)  评论(0编辑  收藏  举报