title: inserting file path into database removes \
body: <p>I am new to java. I want to insert the file path chosen from <code>FileChooser</code> into database. But when I try to do so, the path is correct until the query statement, and after entering it into database, it removes all the backslashes present in the filepath.</p>
  
  <pre><code>filepath=f.getCanonicalPath();
  // some database statements....
  String query="insert into table1 values('" + filepath + "')";
  </code></pre>
  
  <p>If my chosen file path is:</p>
  
  <blockquote>
    <p>"C:\users\documents\hello.txt";</p>
  </blockquote>
  
  <p>It inserts it as:</p>
  
  <blockquote>
    <p>"C:Usersdocumentshello.txt"</p>
  </blockquote>