I\'m trying to use cursors for a query that joins multiple tables. I\'ve seen that for oracle there is a cursor based record. When I try the same for Postgres, it throws som
Just use the RECORD type:
RECORD
DECLARE ... cur_row RECORD; BEGIN ... FETCH xyz INTO cur_row; EXIT WHEN NOT FOUND; IF cur_row.city LIKE 'CH%' THEN ...