Re: Pass SQL results to array
Posted in 1998
Art S. Kagel — — source: Informix-list mailing list archive (1991-1998)
Edward Villalovoz wrote:
>
> Hi,
> Can anyone show me how to pass my sql results to an array in perl
> instead of UNLOADing them to a flat file, and then LOAD the array results
> into another informix table? Thanks in advance.
If your ultimate goal is to load the results of the SELECT into another
table without massaging the data in Perl then try this SQL:
insert into ANOTHER_TABLE(ama_cfc_at)
SELECT ama_cfc
FROM tblamah
GROUP BY .....
You get the picture. Of course if you need to modify the result, this
will not work.
Art S. Kagel