title: How to select the value of a variable in Oracle?
body: <p>I'm new to Oracle. How can I set this variable and show its value?</p>
  
  <pre><code>declare nextId number;
  begin  
          select HIBERNATE_SEQUENCE.nextval into nextId from dual;      
          select nextId from dual;
  end;
  </code></pre>
  
  <p>It complains that an INTO clause is expected in this SELECT statement.</p>