title: PreparedStatement.setString() method without quotes
body: <p>I'm trying to use a PreparedStatement with code similar to this:</p>
  
  <pre><code>SELECT * FROM ? WHERE name = ?
  </code></pre>
  
  <p>Obviously, what happens when I use setString() to set the table and name field is this:</p>
  
  <pre><code>SELECT * FROM 'my_table' WHERE name = 'whatever'
  </code></pre>
  
  <p>and the query doesn't work. Is there a way to set the String without quotes so the line looks like this:</p>
  
  <pre><code>SELECT * FROM my_table WHERE name = 'whatever'
  </code></pre>
  
  <p>or should I just give it up and use the regular Statement instead (the arguments come from another part of the system, neither of those is entered by a user)?</p>