in reply to Re: How do I use bind variable w/oracle DBD?
in thread How do I use bind variable w/oracle DBD?

I know, select * is not a good idea; It was just an example to get the point across. Well, anyway after checking the docs, I found out how to do it. With bind variable it actually improve performance bec. the sql sythax doesn't have to be reparse. Well here's how:
$sth_detections = $dbh->prepare("$QUERY2") || die $DBI::errstr; for ... my $city = $city[$i]; my $station = $station[$i]; $sth_detections->bind_param(":city", $city); $sth_detections->bind_param(":station", $station); $sth_detections->execute; @row = $sth_detections->fetchrow;

Replies are listed 'Best First'.
Re: Re: Re: How do I use bind variable w/oracle DBD?
by ke6scs (Initiate) on Dec 04, 2002 at 01:35 UTC
    I would like to know how to do this with Win32::ODBC . Many of the functions and structures are not available there. Thanks