mybatis mapper介面中使用@select 註解 @select中使用模糊查詢like
不使用concat會出現
Parameter index out of range (1 > number of parameters, which is 0)這個錯誤
正確示例:
@Select("SELECT * FROM shop WHERE shop.name_text LIKE CONCAT('%',#{0},'%') ")
public List<Shop> selectByName(String name_text);