in reply to DBI : Strange Behaviour

I'm not sure why you're bind doesn't work, but here two suggestions that might help.

1) Try to specify the bind_type too, like
use DBD::Oracle qw(:ora_types); ... $sth->bind_param(1,$scode, ORA_NUMBER); or $sth->bind_param(1,$scode, ORA_VARCHAR2);
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:
my $sql = 'SELECT ... FROM ... WHERE temperature = :temperature ...'; ... $sth1->bind_param( ':temperature', $degree_celsius, ORA_NUMBER );
Hth.

Replies are listed 'Best First'.
Re^2: DBI : Strange Behaviour
by srini_sun (Initiate) on Oct 17, 2007 at 09:35 UTC
    Hi Hth, Thanks , it works ! Sri