in reply to DBI : Strange Behaviour
2) If you aren't concerned about portability to other DBs, take advantage of the fact that DBD::Oracle allows the use of named placeholders:use DBD::Oracle qw(:ora_types); ... $sth->bind_param(1,$scode, ORA_NUMBER); or $sth->bind_param(1,$scode, ORA_VARCHAR2);
Hth.my $sql = 'SELECT ... FROM ... WHERE temperature = :temperature ...'; ... $sth1->bind_param( ':temperature', $degree_celsius, ORA_NUMBER );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: DBI : Strange Behaviour
by srini_sun (Initiate) on Oct 17, 2007 at 09:35 UTC |