原文地址:https://blog.csdn.net/sc6231565/article/details/46412765
1. sql中字符串拼接
SELECT * FROM tableName WHERE name LIKE CONCAT(CONCAT(‘%‘, #{text}), ‘%‘);
2. 使用 ${...} 代替 #{...}
SELECT * FROM tableName WHERE name LIKE ‘%${text}%‘;
标签:https 写法 tail 字符串 mybatis text net bat HERE
原文地址:https://blog.csdn.net/sc6231565/article/details/46412765
1. sql中字符串拼接
SELECT * FROM tableName WHERE name LIKE CONCAT(CONCAT(‘%‘, #{text}), ‘%‘);
2. 使用 ${...} 代替 #{...}
SELECT * FROM tableName WHERE name LIKE ‘%${text}%‘;
标签:https 写法 tail 字符串 mybatis text net bat HERE
原文地址:https://www.cnblogs.com/historylyt/p/8716542.html