Problems with PreparedStatement - Java
<p>Im trying to use PreparedStatement to my SQLite searches. Statement works fine but Im getting problem with PreparedStatement.</p>

<p>this is my Search method:</p>

<pre><code>public void searchSQL(){
        try {
            ps = conn.prepareStatement("select * from ?");
            ps.setString(1, "clients");
            rs = ps.executeQuery();
        } catch (SQLException ex) {
            ex.printStackTrace();
        }
    }
</code></pre>

<p>but Im getting this error:</p>

<blockquote>
  <p>java.sql.SQLException: near "?": syntax error     at
  org.sqlite.DB.throwex(DB.java:288)    at
  org.sqlite.NestedDB.prepare(NestedDB.java:115)    at
  org.sqlite.DB.prepare(DB.java:114)    at
  org.sqlite.PrepStmt.(PrepStmt.java:37)  at
  org.sqlite.Conn.prepareStatement(Conn.java:231)   at
  org.sqlite.Conn.prepareStatement(Conn.java:224)   at
  org.sqlite.Conn.prepareStatement(Conn.java:213)</p>
</blockquote>

<p>thx</p>
