title: Syntax Error with mysql in java
body: <p>I don' t understand why eclipse tell me this error for this query:</p>
  
  <pre><code>ResultSet rs = st.executeQuery("select * from '"+ value3+ "' where Name='" + value1 + "' and Password='"+ value2 + "'");
  </code></pre>
  
  <p>error:</p>
  
  <pre><code>com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''f' where Name='f' and Password='f'' at line 1
  </code></pre>