title: How to insert data into TABLE type variable
body: <p>I'm expecting a lot of downvotes, since I think this is a silly question, but here it goes:</p>
  
  <p>I'm attempting at inserting data into a TABLE TYPE variable. I have a pre-existing TABLE TYPE, defined as:</p>
  
  <pre><code>create or replace type m_code_object
   is object (m_code varchar2(25 char));
  
  create or replace type m_code_tabletype
   is table of m_code_object;
  </code></pre>
  
  <p>and the table that I want to define based on this and insert data into, is below:</p>
  
  <pre><code>declare
      vtable m_code_tabletype;
  begin
      insert into vtable values ('a');
      insert into vtable values ('b');
  end;
  </code></pre>
  
  <p>Now, when running this in SQL Developer I get <code>PL/SQL: ORA-00942: table or view does not exist</code> for both rows.</p>
  
  <p>My understanding was that this is a table variable of type <code>m_code_tabletype</code> and that it's enough to declare it in a block before trying to insert data into it.</p>
  
  <p>Can anyone please explain what I'm doing wrong or what's missing from my understanding?</p>
  
  <p>Thanks</p>