title: SELECT INTO statement not working in java program
body: <p>So I'm trying to execute a SELECT INTO statement in java like this:</p>
  
  <pre><code>stmt.executeUpdate("SELECT * INTO SORTING FROM MESSAGES");
  </code></pre>
  
  <p>It gives me the error message 
  Statement.executeUpdate() cannot be called with a statement that returns a ResultSet.</p>
  
  <p>How am I supposed to execute a SELECT INTO statement? I have tried executeQuery and that doesnt work. </p>