Bjorge Solli
2006-07-06 10:52:29 UTC
Hi all.
Example code:
$dbh->bind_param_array(1, \@array_of_foo_values, \%attr);
$dbh->bind_param_array(2, \@array_of_bar_values, \%attr);
$sth->execute_array(\%attr)
I am trying to understand this example. I don't understand how the attr hash
is supposed to be buildt, but I guess it is supposed to (for the case of
mysql at least) contain something like SQL_VARCHAR and similar.
I found the example here:
http://search.cpan.org/src/TIMB/DBI_AdvancedTalk_2004/tsld077.htm
Hope someone can help or direct me to a more comprehensive DBI tutorial on the
web.
Thanks!
Example code:
$dbh->bind_param_array(1, \@array_of_foo_values, \%attr);
$dbh->bind_param_array(2, \@array_of_bar_values, \%attr);
$sth->execute_array(\%attr)
I am trying to understand this example. I don't understand how the attr hash
is supposed to be buildt, but I guess it is supposed to (for the case of
mysql at least) contain something like SQL_VARCHAR and similar.
I found the example here:
http://search.cpan.org/src/TIMB/DBI_AdvancedTalk_2004/tsld077.htm
Hope someone can help or direct me to a more comprehensive DBI tutorial on the
web.
Thanks!
--
Bjørge Solli - Office:+47 55205847
Mohn-Sverdrupsenteret, Nansensenteret, Høyteknologisenteret T47
Thormöhlensgate 47, 5006 Bergen, Norway - www.nersc.no
Google Earth: www.nersc.no/GE - TOPAZ: topaz.nersc.no
Bjørge Solli - Office:+47 55205847
Mohn-Sverdrupsenteret, Nansensenteret, Høyteknologisenteret T47
Thormöhlensgate 47, 5006 Bergen, Norway - www.nersc.no
Google Earth: www.nersc.no/GE - TOPAZ: topaz.nersc.no