in reply to bind_param - confusion ?
is this enough ?$sql = select a , b , c from test where (a = :var1 and b = :var2) or +(a = :var1 and c = :var3)
or since :var1 is repeated twice,should i make the code as below ?$sth->bind_param(':var1',$var1 , {ora_type=>ORA_VARCHAR2}); $sth->execute();
I am novice Perl monk. can u kindly explain me with an example or how should my code be changed to ?$sth->bind_param(':var1',$var1 , {ora_type=>ORA_VARCHAR2}); $sth->bind_param(':var1',$var1 , {ora_type=>ORA_VARCHAR2}); $sth->execute();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: bind_param - confusion ?
by rdfield (Priest) on Jul 17, 2002 at 08:56 UTC | |
by Ryszard (Priest) on Jul 17, 2002 at 10:32 UTC | |
|
Re: Re: bind_param - confusion ?
by graff (Chancellor) on Jul 18, 2002 at 05:31 UTC |