Selecting item from LIST type in 9.14
Posted in 1998
eweaver@my-dejanews.com — — source: Informix-list mailing list archive (1991-1998)
Does anyone know how to select a single item from a LIST column? I
searched every manual I can find. Informix hints that it can be done
but I have not found the syntax and have not guessed correctly either.
GIVEN a table like this:
CREATE TABLE foo
(foo_id int; foo_list LIST(integer not null)
);
How can I select the second element of foo_list where foo_id=2 ?
In Illustra, this would work:
select foo_list[2] from foo where foo_id=2;
Thanks!
Eric Weaver, InteliHealth
eweaver@intelihealth.com
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum