Use of LIKE clause in sql prepared statement, spring, SimpleJDBCTemplate
问题 I have the following sql prepared statement: SELECT * FROM video WHERE video_name LIKE ? Im using spring and jdbc. i have a method, where term is a searchterm, sjt is a SimpleJdbcTemplate, VideoMapper is a RowMapper and searchForTermQuery is the string from above ... return sjt.query(searchForTermQuery, new VideoMapper(), term); My table has 2 videos that match the term. However when I run the query none is found. I get an empty List. I tried playing with % around the question mark, but it