pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: datactrl <quals@bigfoot.com>
To: pgsql-sql@postgresql.org
Subject: question about PL/pgSQL function
Date: Thu, 31 May 2001 21:24:31 +1000
Message-ID: <000901c0e9c4$4bd843a0$2400a8c0@hnjack> (raw)

With postgres 7.1
1. Function like example found on 24.4 Example in Programmer Guide
    CREATE FUNCTION xxx (EMP, integer) RETURNS boolean AS'......
    (which EMP is a table )
    How do I pass a record to this function in PL/PGSQL? I try this
....
    select into rec1 * from EMP where empNo =''xxxx'';
    i1 :=  xxx(rec1,5);
....
    But it won't work!
2. Is that possible to return a record from a function? And how do I get the
returned record in PL/pgSql

JACK




view thread (3+ messages)  latest in thread

Message-ID: <000901c0e9c4$4bd843a0$2400a8c0@hnjack>
Permalink:  ../000901c0e9c4$4bd843a0$2400a8c0@hnjack/
Also on:    postgresql.org/message-id/000901c0e9c4$4bd843a0$2400a8c0@hnjack

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: quals@bigfoot.com
  Subject: Re: question about PL/pgSQL function
  In-Reply-To: <000901c0e9c4$4bd843a0$2400a8c0@hnjack>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox