From: Leif Biberg Kristensen <leif@solumslekt.org>
To: postgresql <pgsql-sql@postgresql.org>
Subject: Plpgsql: Iterating through a string of parameters
Date: Thu, 25 Mar 2010 16:16:53 +0100
Message-ID: <201003251616.53097.leif@solumslekt.org> (raw)
I'm struggling with how to make plpgsql iterate through a list of numbers
input as a text string, eg. "1438 2656 973 4208". I figure that I can use the
regexp_split_to_array() function to make an array of the string, but can I
iterate through an array with eg. a FOR loop?
regards,
--
Leif Biberg Kristensen
http://solumslekt.org/
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: leif@solumslekt.org
Subject: Re: Plpgsql: Iterating through a string of parameters
In-Reply-To: <201003251616.53097.leif@solumslekt.org>
* 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