title: Like %?% doesn't work as part of StringBuilder SQL query
body: <p>Have following String built SQL query:</p>
  
  <pre><code>    StringBuilder querySelect = new StringBuilder("select * from messages ");
      StringBuilder queryWhere = new StringBuilder("where msg_id=?");
  
          if (fileRSVO.getFileName()!= null){
              queryWhere.append("and descr LIKE %?% ");
          }
  querySelect.append(queryWhere);
  
      List&lt;Map&lt;String, Object&gt;&gt; list = getJdbcTemplate().queryForList(querySelect.toString(), params.toArray()); 
      ...
  </code></pre>
  
  <p>The problem is in this part:</p>
  
  <pre><code>queryWhere.append("and descr LIKE %?% ")
  </code></pre>
  
  <p><code>LIKE</code> doesn't work.<br>Checked in debug - it's added to all query.<br>
  Should it be single quoted or some other trick?</p>
  
  <p>thanks.</p>
  
  <p><strong>EDITED</strong></p>
  
  <p>tried single quotes:<code>queryWhere.append("and descr LIKE '%?%' ")</code>
  doesn't work</p>
  
  <p>here is debug string:</p>
  
  <pre><code>select * from messages where msg_id=? and descr LIKE '%?%' 
  </code></pre>