Re: [SQL] Plpgsql: Iterating through a string of parameters

2010-03-26 Thread Jasen Betts
On 2010-03-25, Leif Biberg Kristensen l...@solumslekt.org wrote: 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

Re: [SQL] Plpgsql: Iterating through a string of parameters

2010-03-25 Thread Leif Biberg Kristensen
On Thursday 25. March 2010 16.16.53 Leif Biberg Kristensen wrote: 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

[SQL] Plpgsql: Iterating through a string of parameters

2010-03-25 Thread Leif Biberg Kristensen
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