1. sql string splicing
SELECT * FROM tableName WHERE name LIKE CONCAT(CONCAT('%', #{text}), '%');
2. Instead of using $ {...} # {...}
SELECT * FROM tableName WHERE name LIKE '%${text}%';
1. sql string splicing
SELECT * FROM tableName WHERE name LIKE CONCAT(CONCAT('%', #{text}), '%');
2. Instead of using $ {...} # {...}
SELECT * FROM tableName WHERE name LIKE '%${text}%';