premjhere has asked for the wisdom of the Perl Monks concerning the following question:
Now the bind variable :KEIZIBAN appears twice. is it enough if i say$sql = "select count (*) from MSG where (Janl = :KEIZIBAN and sex = :o +p_sex and flag = 1 and EntPC = :EntPC and Pref = :BFLAG ) or (Janl = +:KEIZIBAN and sex = :op_sex and flag = 2 and EntPC = :EntPC and ID > + 0 and Pref = :BFLAG)";
or should i use the above statement twice :$sth->bind_param(':KEIZIBAN ',$KEIZIBAN , {ora_type=>ORA_VARCHAR2});
kindly explain me monks.$sth->bind_param(':KEIZIBAN ',$KEIZIBAN , {ora_type=>ORA_VARCHAR2}); $sth->bind_param(':KEIZIBAN ',$KEIZIBAN , {ora_type=>ORA_VARCHAR2});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: bind_param - confusion ?
by graff (Chancellor) on Jul 17, 2002 at 06:07 UTC | |
|
Re: bind_param - confusion ?
by premjhere (Initiate) on Jul 17, 2002 at 08:46 UTC | |
by rdfield (Priest) on Jul 17, 2002 at 08:56 UTC | |
by Ryszard (Priest) on Jul 17, 2002 at 10:32 UTC | |
by graff (Chancellor) on Jul 18, 2002 at 05:31 UTC |