title: oracle exact fetch returns more than requested
body: <p>I am having trouble creating a function that returns multiple rows. I am trying to use a loop but I still get the "oracle exact fetch returns more than requested" error. Any help pointing me in the correct direction would be greatly appreciated. </p>
  
  <pre><code>CREATE OR REPLACE FUNCTION sections2
  (
  id_param NUMBER
  )
  RETURN VARCHAR
  AS
  sections_param VARCHAR(40);
  BEGIN
  LOOP
  SELECT sections
  INTO sections_param
  FROM table2
  WHERE id = id_param;
  RETURN sections_param;
  end loop;
  END;
  /
  </code></pre>