Re: problem with RECORD in a stored procedure - Mailing list pgsql-sql

From daq
Subject Re: problem with RECORD in a stored procedure
Date
Msg-id 1746949476.20020308185315@ugyvitelszolgaltato.hu
Whole thread Raw
In response to problem with RECORD in a stored procedure  (Dalton Shane <se401029@cs.may.ie>)
List pgsql-sql
B is record type and you can't insert a record into a field.
You must rewrite your code like this:

FOR b IN SELECT MIN(total) as mintotal from results LOOP               INSERT INTO orla(total) VALUES(b.mintotal);
END LOOP;

DAQ




pgsql-sql by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: problem with RECORD in a stored procedure
Next
From: knut.suebert@web.de
Date:
Subject: Support for "nested sets" and PHP (Re: Recursive select)