Search Postgresql Archives

loop plpgsql recordset variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

How can I loop a PL/PgSQL recorset variable? The example:

   DECLARE
       v_tmp_regi RECORD;
       v_tmp RECORD;
   BEGIN
SELECT * INTO v_tmp_regi FROM sulyozas_futamido sf WHERE sf.termekfajta_id=
     a_termekfajta_id AND sf.marka_id=a_marka_id;

       DELETE FROM sulyozas_futamido;

       FOR v_tmp IN v_tmp_regi LOOP
           --I would like to work here with the old recordset!
       END LOOP;
       ^^^^^^^^^^^^^^
      -- This is not working !!!

   END;


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux