MyBatis 注解 like 语句
看代码 ⑧
@Select("SELECT * FROM t_emps WHERE name like \"%\"#{pattern}\"%\"")
List<Emp> findPatternInEmp(@Param("pattern") String pattern);
看代码 ⑧
@Select("SELECT * FROM t_emps WHERE name like \"%\"#{pattern}\"%\"")
List<Emp> findPatternInEmp(@Param("pattern") String pattern);