In MyBatis, you mark the places where parameters should be inserted into your SQL like so:
SELECT * FROM Person WHERE id = #{id}
|| operator worked for me in IBatis but not in Mybatis.
||
In MyBatis i had to use + operator.
+
SELECT * FROM Employee WHERE name like '%' + #{searchName,jdbcType=NVARCHAR} + '%'