![]() |
|
There's more than one way to do things | |
PerlMonks |
Re: executing a OSP with CGIby arturo (Vicar) |
on Jul 15, 2003 at 20:32 UTC ( #274564=note: print w/replies, xml ) | Need Help?? |
This may have changed recently, but for a long time the recommended way to execute a stored procedure in Oracle through DBI is to essentially execute an anonymous procedure that calls it, like so:
In case you're unfamiliar with the notion, the ? are placeholders, whose values get replace by your x, y, and z vars in the do call. The undef in the do call is required to use placeholders with the DBI's do method (you probably don't need to know exactly why, but you do need something there). Updated the code to fix one syntax error and misleading syntax. This way of executing stored procedures is documented in DBD::Oracle If not P, what? Q maybe?
In Section
Seekers of Perl Wisdom
|
|