title: Oracle PL/SQL: How to print a table type
body: <p>I am trying to print an <code>table type</code> for debugging purposes, but don't know how. I tried the following two methods, neither of which work:</p>
  
  <pre><code>dbms_output.put_line (V_TEMP_TABTYPE(1));
  dbms_output.put_line (V_TEMP_TABTYPE);
  </code></pre>
  
  <p>The error generated is: <code>PLS-00306: wrong number or types of arguments in call to</code>.</p>
  
  <p>So, how can I print the contents of a <code>table type</code>? Or is there a different way to display the contents?</p>
  
  <p>The <code>table_type</code> and the <code>type</code> it references are::</p>
  
  <pre><code>create or replace TYPE MY_TYPE IS OBJECT( MyString Varchar(20)
                                          , counter Number(9) );    
  create or replace TYPE MY_TABTYPE AS TABLE OF MY_TYPE;
  </code></pre>