Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

for loop postgresql

FOR r IN SELECT * FROM foo
    WHERE fooid > 0
    LOOP
        -- can do some processing here
        RETURN NEXT r; -- return current row of SELECT
    END LOOP;
 
PREVIOUS NEXT
Tagged: #loop #postgresql
ADD COMMENT
Topic
Name
3+1 =