title: Exception in prepared statement
body: <p>Following is the code.</p>
  
  <pre><code>     Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
       conn = DriverManager.getConnection("jdbc:odbc:cse");
       //Statement stmt;
       ResultSet rset;
       //stmt = conn.createStatement();
  
       String sql = " Select * from registration where id=?";
       PreparedStatement pst = conn.prepareStatement(sql);
       pst.setString(1, "101");
       rset = pst.executeQuery(sql);
  
       while (rset.next()) {
           arr.add(rset.getInt("id"));
           arr.add(rset.getString("first"));
           arr.add(rset.getString("last"));
           arr.add(rset.getInt("age"));
      }
  
    System.out.println(arr);
    pst.close();
    conn.close();
  </code></pre>
  
  <p>For the above am getting "Error: java.sql.SQLException: Driver does not support this function". What might be the problem?</p>