title: What is the correct way to include a variable inside an Apache derby Export_Query
body: <p>I am trying to export data from a derby table to a file. I'm having issues with the <code>WHERE</code> clause. What I have is this.</p>
  
  <pre><code>s.execute("CALL SYSCS_UTIL.SYSCS_EXPORT_QUERY('SELECT *FROM REPORT WHERE DATE = " + conversion.getDate() + " ' , 'C:\\Pos\\daily_report.csv' , ',' , null, null)");
  </code></pre>
  
  <p>This exception </p>
  
  <blockquote>
    <p>Java.sql.SQLSyntaxErrorException: Syntax error: Encountered "Sep" at
    line 1, column 37.</p>
  </blockquote>
  
  <p>was thrown while evaluating an expression.</p>
  
  <p>Could someone direct me regarding this.</p>