Re: [GENERAL] element from an array by its index

2009-07-21 Thread Sam Mason
On Tue, Jul 21, 2009 at 02:29:12PM -0400, Merlin Moncure wrote: > On Tue, Jul 21, 2009 at 10:47 AM, Sam Mason wrote: > > On Tue, Jul 21, 2009 at 04:08:51PM +0600, Murat Kabilov wrote: > >> I would like to know if there is a function that extracts an element by its > >> index from an array? > > > >

Re: [GENERAL] element from an array by its index

2009-07-21 Thread Merlin Moncure
On Tue, Jul 21, 2009 at 10:47 AM, Sam Mason wrote: > On Tue, Jul 21, 2009 at 04:08:51PM +0600, Murat Kabilov wrote: >> I would like to know if there is a function that extracts an element by its >> index from an array? > > No, the syntax most people expect and use would be arr[ndx].  If you > want

Re: [GENERAL] element from an array by its index

2009-07-21 Thread Sam Mason
On Tue, Jul 21, 2009 at 04:08:51PM +0600, Murat Kabilov wrote: > I would like to know if there is a function that extracts an element by its > index from an array? No, the syntax most people expect and use would be arr[ndx]. If you want a function, it would be easy to do: CREATE FUNCTION array

[GENERAL] element from an array by its index

2009-07-21 Thread Murat Kabilov
Hello, I would like to know if there is a function that extracts an element by its index from an array?