title: Using TABLE as array in PL/SQL
body: <p>I am using this anonymous function to test a programming construct for inclusion in a larger script:</p>
  
  <pre><code>DECLARE
                  TYPE array IS TABLE OF VARCHAR2(255);
                  g_to array DEFAULT array ();
  
  
  BEGIN
                  INSERT INTO g_to VALUES ('myaddy@internet.com');
  END;
  </code></pre>
  
  <p>But, when I run it, I get:</p>
  
  <pre><code>*Error starting at line : 1 in command -
  DECLARE
                  TYPE array IS TABLE OF VARCHAR2(255);
                  g_to array DEFAULT array ();
  
  
  BEGIN
                  INSERT INTO g_to VALUES ('myaddy@internet.com');
  END;
  Error report -
  ORA-06550: line 10, column 17:
  PL/SQL: ORA-00942: table or view does not exist
  ORA-06550: line 10, column 5:
  PL/SQL: SQL Statement ignored
  06550. 00000 -  "line %s, column %s:\n%s"
  *Cause:    Usually a PL/SQL compilation error.
  *Action:*
  </code></pre>
  
  <p>Now, the array is clearly defined, so why is the INSERT failing?</p>