Re: foreach in sql functions

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Zac Hillier" <zac(at)affectors(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: foreach in sql functions
Date: 2002-10-02 22:58:02
Message-ID: 29561.1033599482@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Zac Hillier" <zac(at)affectors(dot)net> writes:
> Is it possible to write sql functions with a foreach style loop?

SQL functions don't have any control structures. Consider plpgsql,
pltcl, or plpython instead.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John Worsley 2002-10-02 23:08:36 [PATCH] PL/Perl (Mis-)Behavior with Runtime Error Reporting
Previous Message Tom Lane 2002-10-02 22:54:33 Re: Advice: Where could I be of help?