[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Array
At 10:14 AM 6/19/2002 +0200, you wrote:
>Hello,
>
>can anybody help me:
>
>How can I declare an array from the result of a query in Interchange?
>
>Zoli
See:
http://interchange.redhat.com/cgi-bin/ic/docfly.html?mv_arg=ictags04.55
Examples:
my $sql = "select * from products order by price";
my $result_array = $Tag->query( { sql => $sql, },
$body );
my ($same_results, $col_name_hash, $col_name_array) =
$Tag->query( { sql => $sql, },
$body );
my $result_hasharray = $Tag->query( { sql => $sql,
hashref => 'my_results', },
$body );
HTH, HAND,
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Dan Browning, Kavod Technologies <db@kavod.com>
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Power corrupts. Absolute power is kind of neat"
-- John Lehman, Secretary of the Navy 1981-1987
- References:
- [ic] Array
- From: interchange-users@icdevgroup.org (Toth Zoltan)