Re: looping through records... - Mailing list pgsql-novice

From Tom Lane
Subject Re: looping through records...
Date
Msg-id 15113.987628854@sss.pgh.pa.us
Whole thread Raw
In response to looping through records...  ("Bob Whitehouse" <bwhitehouse@geeknest.com>)
List pgsql-novice
"Bob Whitehouse" <bwhitehouse@geeknest.com> writes:
> Here's how I call the test loop and the error I get:

> db=# SELECT test_loop(1, 'testing');
> ERROR: parse error at or near ";"

I'm not sure why this comes out as a parse error rather than something
more helpful, but the problem is you didn't declare the record variable
that's going to receive the rows.  Try adding the declaration "row RECORD;"

            regards, tom lane

pgsql-novice by date:

Previous
From: "Bob Whitehouse"
Date:
Subject: looping through records...
Next
From: "Albert REINER"
Date:
Subject: Re: looping through records...