title: ORA-22905 - when querying a table type with a select statement
body: <pre><code> DECLARE
   TYPE record_AB IS RECORD
     (
        AA              VARCHAR2 (16 BYTE),
        BB    VARCHAR2 (16 BYTE)
     );
  
    TYPE type_tab_AB IS TABLE OF record_AB
                          INDEX BY BINARY_INTEGER;
  
    tab_AB   type_tab_AB;
  
    BEGIN
     SELECT *
      BULK COLLECT INTO tab_AB FROM...
      ..
      SELECT * FROM TABLE (tab_AB) ;
  </code></pre>
  
  <p>I get "ORA-22905: cannot access rows from a non-nested table item" when it gets to the SELECT from TABLE statement.</p>
  
  <p>Is it even possibile to query a table type within PLSQL?</p>