I'm being told by a Java programmer that use of the bind_param method on a statement handler is more efficient than calling execute with the parameters. He thinks that if I don't use bind_param that Perl does the binding instead of allowing Oracle to do it and so Oracle has to parse two different statements that don't match if I execute it twice. True? False?
Update: And the answer is: false. He checked in the database. He sounded mildly surprised.
Sort of right for the wrong reasons (Score:1)
Nevermind (Score:1)
I'm wrong:
You're binding a copy of the value, not the variable itself (like with bind_columns). I'm way off.
Re:Nevermind (Score:2)
It's also worth noting that this is entirely DBD driver dependent. I believe old versions of the MySQL DBD used to bind the variables into the string sent to the database because MySQL had no bind param support (it does now, IIRC).