| From: | "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: PlPg/SQL |
| Date: | 2007-04-02 14:41:29 |
| Message-ID: | 20070402144129.GK31131@a-kretschmer.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
am Sat, dem 31.03.2007, um 15:40:56 -0700 mailte MaDog folgendes:
> Hi!
>
> How can i return one more row form a pgpl/sql function?
You can use a set-of-record - function for this:
http://www.postgresql.org/docs/current/static/xfunc-sql.html#XFUNC-SQL-TABLE-FUNCTIONS
or
http://www.postgresql.org/docs/8.1/interactive/plpgsql-control-structures.html#PLPGSQL-RECORDS-ITERATING
(Read the user-comment)
>
> CREATE OR REPLACE FUNCTION GetRows(INTEGER, INTEGER, INTEGER) RETURNS
You should better use an array(int) for a variable count of parameters.
Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Martijn van Oosterhout | 2007-04-02 14:45:01 | Re: Some encoding trouble via libpq |
| Previous Message | Magnus Hagander | 2007-04-02 14:34:31 | Re: Using C# to create stored procedures |