When I run this, I always get an output of 0. Please advise.#!/usr/bin/perl use DBI; $dbh = DBI->connect('DBI:Sybase:server=DEV;', $user, $passwd) or die " +Cannot connect:$@\n"; $sth = $dbh->prepare("declare \@test numeric(9,4) exec C3206 \@diskreads=\@test +OUTPUT"); $sth->execute; while($d = $sth->fetch) { $test = $d->[0]; print "Test is $test\n"; }
In reply to SQL Stored Procedure return value by gnangia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |