title: How to SELECT INTO array of Numbers in Oracle PL/SQL?
body: <p>I'm trying to save set of ids in array: </p>
  
  <pre><code>declare
   cities_ids array_of_numbers;
  begin
  select id into cities_ids from objects where id = 1115464;
      FOR i IN 1..cities_ids.COUNT LOOP
          DBMS_OUTPUT.PUT_LINE(cities_ids(i));
      END LOOP;
  end;
  </code></pre>
  
  <p>After execution, I got next error:</p>
  
  <pre><code>ORA-00932: inconsistent datatypes. Expected UDT, got NUMBER.
  </code></pre>
  
  <p>Please explain what I did wrong...</p>