title: For loops with string in PostgreSQL
body: <p>Here I am trying to concatenate a string with <code>,</code>:</p>
  
  <pre><code>CREATE FUNCTION looping() RETURNS TABLE(round text)
  DECLARE
    i RECORD;
  BEGIN
  
  FOR i IN select regexp_split_to_table('33,55,66,88', ',') as "asd"
  LOOP
    str:= str || ',' ||(select  i."asd");
  END LOOP;
  
  END;
  $$ LANGUAGE plpgsql; 
  </code></pre>
  
  <p>Is it true or am I missing something?</p>