in reply to Yet Another Stored Procedure Question
This is covered in DBI::FAQ ... but the answer isn't all that helpfull. the basic idea is that:
In some databases, you could do this like so...
my $rv = 0; my $dbh = DBI->connect(...); my $sth = $dbh->prepare('{?=call name_of_sproc()}'); $sth->bind_param_inout(1, \$rv, 4); $sth->execute(); $sth->finish(); print "return value: $rv\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
The Results Are In! (Returning data from stored procedures on MS SQL and Win32 using DBI::ODBC)
by Reverend Phil (Pilgrim) on Jun 24, 2003 at 15:15 UTC |